London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Synchronous operations are disallowed when getting content

Fixed in

EPiServer.CMS.Core 12.14.0

(Or a related package)

Created

Jun 28, 2021

Updated

Apr 24, 2025

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).