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:4348) [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> sql query execution error: DECLARE @trg TABLE (uuid uniqueidentifier); WITH src AS ( SELECT [uuid], [name], [display_name], [type], [changed_at], [sync_ver], [is_deleted] FROM [options] AS src WHERE owner='C6F69D44-9AF7-4CD1-9187-2174360519C2' AND sync_ver>0 ) SELECT ( SELECT * FROM src WHERE sync_ver>1748071764477 AND is_deleted = 0 AND NOT EXISTS (SELECT uuid FROM @trg AS trg WHERE src.uuid=trg.uuid) FOR JSON AUTO, INCLUDE_NULL_VALUES) AS [new_to_client] , (SELECT ( SELECT uuid FROM src WHERE sync_ver>1748071764477 AND is_deleted = 1 FOR JSON AUTO, INCLUDE_NULL_VALUES) ) AS [deleted] , (SELECT IIF(OBJECT_ID('tempdb..##MissingPKs') IS NULL, NULL, ( SELECT [column], [value] FROM ##MissingPKs WHERE [table]='options' AND owner='C6F69D44-9AF7-4CD1-9187-2174360519C2' FOR JSON AUTO, INCLUDE_NULL_VALUES) )) AS [missing_pks_in_server] , (SELECT LOWER(CONVERT(VARCHAR(32),HASHBYTES('MD5', LOWER(( SELECT uuid, changed_at, sy {"code":"EREQUEST","originalError":{"sqlstate":"42S02","code":208,"severity":16,"serverName":"SERVER-WIN","procName":"","lineNumber":4},"name":"RequestError","number":208,"lineNumber":4,"state":"42S02","class":16,"serverName":"SERVER-WIN","procName":""} failed to udpate any row of <WebshopCart> 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 <WebshopCart> [x1B][1m[x1B][43m[x1B][30m Puppeteer old Headless deprecation warning:[x1B][0m[x1B][33m In the near future `headless: true` will default to the new Headless mode for Chrome instead of the old Headless implementation. For more information, please see https://developer.chrome.com/articles/new-headless/. Consider opting in early by passing `headless: "new"` to `puppeteer.launch()` If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.[x1B][0m failed to udpate any row of <Media> failed to udpate any row of <Media> sql query execution error: DECLARE @owner uniqueidentifier = N'5541DDC9-434F-45E0-AD19-E279ED1B5B16' SELECT C.*, ISNULL(CP.prdCount, 0) [prdCount], CP.product_id, Media.url AS cover_media_url, ISNULL(Media.url, ( SELECT TOP 1 url FROM Media WHERE owner = @owner AND is_cover=1 AND is_deleted=0 AND type='product_pic' AND product_id IN (SELECT product_id FROM CatalogProduct WHERE owner = @owner AND catalog_id = C.uuid) ORDER BY created_at ASC )) top_product_image FROM Catalog C LEFT JOIN Media ON Media.uuid = C.cover_media_id LEFT JOIN ( SELECT colPrd.*, ROW_NUMBER() OVER (PARTITION BY catalog_id ORDER BY colPrd.changed_at DESC) row_num, COUNT(*) OVER (PARTITION BY catalog_id) [prdCount] FROM CatalogProduct colPrd LEFT JOIN F_Product_Stock_For_Webshop('5541 {"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":""} unhandledRejection: RequestError: Query timeout expired sql query execution error: SELECT TOP 1 * FROM [Webshop] WHERE [private_domain]=N'nourashop.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'amcmarket.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.