Can't export PNG or PDF

Is it possible to adjust and accept files with larger height and width?
I use the built-in export function, but it always shows “request entity too large”.
But the JSON file itself is only 1MB.

image

Provide examples for local testing
20240722.json (1.0 MB)

Hello.

Your provided data itself exports correctly:
https://snippet.dhtmlx.com/t57sdohy
The problem most probable in the usage of the additional custom css.
Please, make sure to define which css styles should be sent to the export service with the exportStyles property:

const diagram = new dhx.Diagram("diagram_container", { 
    exportStyles:[
        "https://mySite.com/exportStyle.css",
        "https://mySite.com/secondExportStyle.css"
    ]
});

If the problem still occurs for you please, provide a complete demo, where the problem can be reconstructed locally