Grids.FailureEventArgs, serializacion error

hi Team,

with previous versions over 27.1.48 the exception message arrive to client

but in the last versions an error ocurred in serialize the exception, last version from 27.x i can't see the exception message for manage in client application

i attached a demo for reproduce, in server project in controller i force an exception

  [EnableQuery]

  public IActionResult Get(CancellationToken token)

  {

      throw new Exception("FORCE ERROR");

      GetData();

      IQueryable<OrgUnit> tOrgUnits = orgUnits.AsQueryable();

      return Ok(tOrgUnits);

  }



with previous versions 27.x i can see the message error "FORCE ERROR"


best regards



2 Replies

SC Sergio Cabello January 10, 2025 01:34 PM UTC

attach the test project


Attachment: demofail_77677b9f.zip


NP Naveen Palanivel Syncfusion Team January 14, 2025 02:02 AM UTC

Hi Sergio Cabello,

Based on the reported problem, we would like to clarify that in earlier versions, serialization errors were sent differently. To address this issue, we have implemented support for sending exceptions directly, allowing them to be processed in the ProcessResponse method.

When an issue occurred previously, the ProcessResponse method was triggered, but exception details were not available. However, in the latest version, we have ensured that complete exception details are returned, allowing the ProcessResponse method to capture and display them. If you still want to retrieve exception details, we recommend using the ProcessResponse method to get the error information. Kindly refer to the attached sample for your reference.


Previous version



Version : 27.2.3






Regards,

Naveen.


Attachment: BlazorDataGridODatav4_955cb98d.zip

Loader.
Up arrow icon