SyntaxError: Unexpected end of JSON input; Problem with dash-renderer javascript when hosted behind Azure API Management

Hi, i’ve created a dash app and hosted it on Azure App Service, it is working fine. But when deploying the app behind Azure API management to throttle limit/access control, i’ve faced the following problem:
'the javascript source code of dash-renderer (_dash-update-component in networks tab) throws SyntaxError: Unexpected end of JSON input


I’m confused as to why this is happening, since all the packets are 200 well received. This seems to affect the callback portion of the app, all components involved after the first callback function seems to appear inactive.

Does anyone have similar experiences with this error and is able to help?

I am suffering from the same situation.
Did you find a solution?

Same Issue occurred with me as well. I am using dcc.Download to download large files. Whenever file becomes ~ 400 MB or more in size, nothing is downloaded by dcc.Download component. When I tried looking on web browser console, I found similar error message.