Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Synchronous operations are disallowed when getting content

Fixed in

EPiServer.CMS.Core 12.14.0

(Or a related package)

Created

Jun 28, 2021

Updated

Dec 18, 2023

Area

CMS Core

State

Closed, Fixed and tested


Description

Prevent `Synchronous operations are disallowed` error when getting JSON from the server

Use ClientResourceOptions.JsonResponseBuffer setting for both input and output memory buffer threshold when serializing/deserializing using the Newtonsoft serializer.

The default value is now 256 kilobytes instead of 30kb

It has to be increased when using a global newtonsoft serializer and need to return big amounts of data (previous default was 30 kb).