Greetings and thank you for the hard work that has gone into Radzen Components.
We have a UI that is rendered using Interactive Server mode. Very intemittently (0.6% of the time) according to our automated tests we get the following exception:
System.ArgumentException: There is no event handler associated with this event. EventId: '2061'. (Parameter 'eventHandlerId')
at Microsoft.AspNetCore.Components.RenderTree.Renderer.DispatchEventAsync(UInt64 eventHandlerId, EventFieldInfo fieldInfo, EventArgs eventArgs, Boolean waitForQuiescence)
at InvokeStub_WebRendererInteropMethods.DispatchEventAsync(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
Error: System.ArgumentException: There is no event handler associated with this event. EventId: '2061'. (Parameter 'eventHandlerId')
at Microsoft.AspNetCore.Components.RenderTree.Renderer.DispatchEventAsync(UInt64 eventHandlerId, EventFieldInfo fieldInfo, EventArgs eventArgs, Boolean waitForQuiescence)
at InvokeStub_WebRendererInteropMethods.DispatchEventAsync(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
at y.endInvokeDotNetFromJS (http://127.0.0.1:46501/_framework/blazor.server.js:1:3502)
at Xt._invokeClientMethod (http://127.0.0.1:46501/_framework/blazor.server.js:1:61001)
at Xt._processIncomingData (http://127.0.0.1:46501/_framework/blazor.server.js:1:58476)
at Xt.connection.onreceive (http://127.0.0.1:46501/_framework/blazor.server.js:1:52117)
at s.onmessage (http://127.0.0.1:46501/_framework/blazor.server.js:1:80262)
This happens when Playwright enters some numeric values in a component that does the following:
RenderFragment ParameterComponent(Parameter parameter) => builder =>
{
builder.OpenComponent<RadzenNumeric<double?>>(0);
builder.AddAttribute(1, "oninput", EventCallback.Factory.Create<ChangeEventArgs>(this, (args) => OnChange(parameter, args.Value)));
}
Any idea why this Exception is thrown?