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

113
Views
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
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!