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

114
Visualizações
Delay between ajax call and Controller method receiving

I have a page in which I execute an ajax call to an ActionResult passing a JSON as data.

Ajax Call:

$.ajax({
        contentType: "application/json; charset=utf-8",
        traditional: true,
        cache: false,
        url: "/ContainerPacking/_GenerateShipmentProposal",
        type: "post",
        data: JSON.stringify({
            origin,
            containers,
            boxes
        }),
        success: function (result) {
            // execute something
        }
    });

Asp.NET MVC ActionResult:

public ActionResult _GenerateShipmentProposal(int origin, List<int[]> containers, List<Box> boxes, float GapBetweenBoxes = 0.0001f)
{
    //execute something;
}

This was working fine, but recently I started noticing a delay (5 ~ 10s) between the ajax call and the ActionResult being triggered.

This happens both in debug mode and in the published page.

Do you guys have any idea what could be happening? Or how to debug/find out what could be happening?

PS.: using .NET Framework 4.7.1 and JQuery 3.5.1

Thanks!

about 4 years ago · Juan Pablo Isaza
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