volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

Cannot add gadget in Dashboard/Edit mode

HI Team,

We are facing issue while adding a gadget 'External review component' in CMS, it throws error as 'Could not add component' pop up.

EPiServer.Global : Unhandled exception in ASP.NET
System.InvalidOperationException: The JSON request was too large to be deserialized.

Kindly let us know how to overcome this issue?

#294414
Jan 10, 2023 7:13

Can you look into log files to see if there is any stacktrace in there? 

#294416
Jan 10, 2023 8:12
Vote:

One thing you can try is to add this setting to appSettings

<appSettings>
    <add key="aspnet:MaxJsonDeserializerMembers" value="2500" />
</appSettings>

#294417
Jan 10, 2023 8:18

I ran into this issue as well and was able to add that key and have it resolved. Kind of an odd fix but I will take it.

#295902
Feb 03, 2023 15:49

not really an odd fix. it allows bigger json to be parsed. it is a workaround yes but not exactly odd 

#295903
Feb 03, 2023 16:21
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.