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:7124) [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 @price DECIMAL(19,3) = 0
            DECLARE @stock INT = 0
            DECLARE @max_purchase_quantity INT = 0

            SELECT @price=IIF(discount < 0, sell_price * (1+discount), IIF(sell_price-discount > 0, sell_price-discount, 0)),
                @stock=prdVarStock._stock,
                @max_purchase_quantity=max_purchase_quantity
            FROM [ProductVariation] AS prdVar
            LEFT JOIN F_ProductVariation_Stock_For_Webshop(N'E762A31B-A054-466F-8558-B6C2C851FA72') AS prdVarStock ON prdVarStock.product_variation_id = prdVar.uuid
            WHERE prdVar.uuid=N'634DE7D0-6191-4CC5-906F-829BB6FF5E66'

            DECLARE @ignore_stock BIT = 0
            SELECT @ignore_stock=allow_order_non_available FROM Webshop WHERE uuid=N'28FE5747-DBA5-4FDD-ADA0-D93E4D684CA0'

            UPDATE [WebShopCart] SET
                quantity=IIF(
                    @max_purchase_quantity > 0,
                    dbo.MIN_INT(IIF(@ignore_stock=1, quantity+1, IIF(quant

            {"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