Share via

Blazor - Server- Error: Circuit not initialized.

Davidos 11 Reputation points
2021-04-08T12:41:27.127+00:00

Hello,

Blazor server side question:
We have an app (.Net core 3.1) which is hosted on Azure.
When the app is not used for several minutes and user clicks in the app an error will occure in web console Error: Circuit not initialized., second click means Uncaught (in promise) Error: Cannot send data if the connection is not in the 'Connected' State. => Blazor is disconnected.

How it can happen that circuit is not inicialized?
I tried to increase DisconnectedCircuitRetentionPeriod to 3 hours but without any proggress.

Thank you in advance for help.

/David

Developer technologies | .NET | Blazor

1 answer

Sort by: Most helpful
  1. Francisco Muro A 1 Reputation point
    2022-08-28T04:20:54.96+00:00

    Hello, here I provide some log about this case

    2022-08-28 00:06:12.021 -04:00 [INF] Request starting HTTP/2 POST https://localhost/home/_blazor/disconnect multipart/form-data;+boundary=----WebKitFormBoundary5hheFeoNeI3pr75R 359
    2022-08-28 00:06:12.022 -04:00 [INF] Executing endpoint 'Blazor disconnect'
    2022-08-28 00:06:12.039 -04:00 [INF] Executed endpoint 'Blazor disconnect'
    2022-08-28 00:06:12.040 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:12.040 -04:00 [INF] Request finished HTTP/2 POST https://localhost/home/_blazor/disconnect multipart/form-data;+boundary=----WebKitFormBoundary5hheFeoNeI3pr75R 359 - 200 - - 19.4237ms
    2022-08-28 00:06:15.895 -04:00 [INF] Request starting HTTP/2 POST https://localhost/home/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
    2022-08-28 00:06:15.896 -04:00 [INF] Executing endpoint '/_blazor/negotiate'
    2022-08-28 00:06:15.898 -04:00 [INF] Executed endpoint '/_blazor/negotiate'
    2022-08-28 00:06:15.898 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:15.899 -04:00 [INF] Request finished HTTP/2 POST https://localhost/home/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 3.7583ms
    2022-08-28 00:06:16.324 -04:00 [INF] Request starting HTTP/1.1 GET https://localhost/home/_blazor?id=Xsat7pA5grbj7cJQmKQ68g - -
    2022-08-28 00:06:16.325 -04:00 [INF] Executing endpoint '/_blazor'
    2022-08-28 00:06:22.384 -04:00 [INF] Executed endpoint '/_blazor'
    2022-08-28 00:06:22.385 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:22.385 -04:00 [INF] Request finished HTTP/1.1 GET https://localhost/home/_blazor?id=Xsat7pA5grbj7cJQmKQ68g - - - 101 - - 6060.7734ms
    2022-08-28 00:06:23.254 -04:00 [INF] Request starting HTTP/2 GET https://localhost/home/login - -
    2022-08-28 00:06:23.255 -04:00 [INF] Executing endpoint '/_Host'
    2022-08-28 00:06:23.255 -04:00 [INF] Route matched with {page = "/_Host", action = "", controller = ""}. Executing page /_Host
    2022-08-28 00:06:23.256 -04:00 [INF] Executing an implicit handler method - ModelState is "Valid"
    2022-08-28 00:06:23.257 -04:00 [INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.
    2022-08-28 00:06:23.257 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:23.259 -04:00 [INF] Executed page /_Host in 3.9367ms
    2022-08-28 00:06:23.259 -04:00 [INF] Executed endpoint '/_Host'
    2022-08-28 00:06:23.260 -04:00 [INF] Request finished HTTP/2 GET https://localhost/home/login - - - 200 - text/html;+charset=utf-8 5.5760ms
    2022-08-28 00:06:23.265 -04:00 [INF] Request starting HTTP/2 GET https://localhost/home/css/site.min.css - -
    2022-08-28 00:06:23.265 -04:00 [INF] Request starting HTTP/2 GET https://localhost/home/css/docuvieware-min.css - -
    2022-08-28 00:06:23.265 -04:00 [INF] The file /css/site.min.css was not modified
    2022-08-28 00:06:23.265 -04:00 [INF] The file /css/docuvieware-min.css was not modified
    2022-08-28 00:06:23.266 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:23.266 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:23.266 -04:00 [INF] Request finished HTTP/2 GET https://localhost/home/css/site.min.css - - - 304 - text/css 0.8302ms
    2022-08-28 00:06:23.266 -04:00 [INF] Request finished HTTP/2 GET https://localhost/home/css/docuvieware-min.css - - - 304 - text/css 0.5735ms
    2022-08-28 00:06:23.270 -04:00 [INF] Request starting HTTP/2 GET https://localhost/home/css/chosen.min.css - -
    2022-08-28 00:06:23.271 -04:00 [INF] The file /css/chosen.min.css was not modified
    2022-08-28 00:06:23.271 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:23.271 -04:00 [INF] Request finished HTTP/2 GET https://localhost/home/css/chosen.min.css - - - 304 - text/css 0.7683ms
    2022-08-28 00:06:23.410 -04:00 [INF] Request starting HTTP/2 GET https://localhost/home/js/popper.min.js.map - -
    2022-08-28 00:06:23.422 -04:00 [INF] Accessing expired session, Key:15659e97-fe72-f51f-0c97-052f7b79b0f2
    2022-08-28 00:06:23.423 -04:00 [INF] Request finished HTTP/2 GET https://localhost/home/js/popper.min.js.map - - - 404 - - 13.4587ms

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.