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:15052) [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: DECLARE @owner uniqueidentifier = N'5E75303E-3EAD-4611-B9A0-8D7D4935AE4A' 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('5E75 {"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