Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

379
Views
Blazor Application /_blazor/disconnect statuscode 400

my blazor app seems to work but im trying to understand why I'm getting a 400error as seen in the screenshot.

Who can give me a HINT for what Blazor needs technically the "disconnect" ?

SCREENSHOT-disconnect

I'm running everything on a NGINX webserver.

thx Fabio

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

That call happens here in the code on the window unload event and is used to tell the signalr server that you are disconnecting.

If you are seeing a lot of these it may be that your proxy is not configured correctly for websocket connections.

window.addEventListener(
    'unload',
    () => {
      const data = new FormData();
      const circuitId = circuit.circuitId!;
      data.append('circuitId', circuitId);
      navigator.sendBeacon('_blazor/disconnect', data);
    },
    false
  );
over 4 years ago · Santiago Trujillo Report

0

There's a bug reported for this issue here: https://github.com/dotnet/aspnetcore/issues/30316

Blazor.server.js not respecting configureSignalR builder defined url/path for disconnnects

As a work-around, I added this to Startup.cs in the Configure method:

var rewriteOptions = new RewriteOptions();
rewriteOptions.AddRewrite("_blazor/disconnect", "/_blazor/disconnect", skipRemainingRules: true);
app.UseRewriter(rewriteOptions);
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!