Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

389
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda