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:

sql query execution error:

DECLARE @trg TABLE (uuid uniqueidentifier);

WITH src AS (
    SELECT [uuid], [title], [show_non_available], [show_price], [show_stock], [show_attributes], [is_live], [live_url], [active], [index_in_webshop], [created_at], [cover_media_id], [changed_at], [sync_ver], [is_deleted] FROM [catalog] AS src
    WHERE owner='33972FAF-6CF8-4FC7-8E12-A04C55B56CCE' AND sync_ver>0
)

SELECT (
    SELECT * FROM src
    WHERE
        sync_ver>1733989021038
        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>1733989021038
        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]='catalog' AND owner='33972FAF-6CF8-4FC7-8E12-A04C55B56CCE'
    FOR JSON AUTO, INCLUDE_NULL_VALUES)
)) AS [missing_pks_in_server]
,
(SELECT
    LOWER(CONVERT(VARCHAR(32),HASHBYTES('MD5', LOWER((
        SELECT uuid, changed_at, sync_ver FROM src
        WHERE is_deleted=0
        ORDER BY convert(nvarchar(36), uuid)
        FOR JSON AUTO, INCLUDE_NULL_VALUES)
    )), 2))
) AS [checksum]

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