volker76 / tuya_mqtt.net

MQTT Client for local Tuya devices
https://github.com/volker76/tuya_mqtt.net/wiki
Apache License 2.0
3 stars 0 forks source link

Logging page results in Exception #5

Closed volker76 closed 1 year ago

volker76 commented 1 year ago

when opining the System logging page, immedeately an exception is raised.

seen in v0.9.5

[2023-10-01T17:46:30.378Z] Error: System.AggregateException: One or more errors occurred. (JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.)
 ---> Microsoft.JSInterop.JSDisconnectedException: JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.
   at Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.BeginInvokeJS(Int64 asyncHandle, String identifier, String argsJson, JSCallResultType resultType, Int64 targetInstanceId)
   at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, CancellationToken cancellationToken, Object[] args)
   at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
   at tuya_mqtt.net.Services.BrowserService.GetElementClientRectAsync(ElementReference element) in C:\Users\Volker.SPIELHAUS\source\repos\tuya_mqtt.net\tuya_mqtt.net\Services\BrowserService.cs:line 149
   at tuya_mqtt.net.Pages.Logger.OnAfterRenderAsync(Boolean firstRender) in C:\Users\Volker.SPIELHAUS\source\repos\tuya_mqtt.net\tuya_mqtt.net\Pages\Logger.razor:line 30
   --- End of inner exception stack trace ---
log @ blazor.server.js:1
pr @ blazor.server.js:1
(anonym) @ blazor.server.js:1
_invokeClientMethod @ blazor.server.js:1
_processIncomingData @ blazor.server.js:1
Ft.connection.onreceive @ blazor.server.js:1
i.onmessage @ blazor.server.js:1
volker76 commented 1 year ago

fixed with release v0.9.8