Results 1 to 3 of 3

Thread: Long running Ajax request gives status of (Failed) with net::ERR_EMPTY_RESPONSE

  1. #1
    Sencha User
    Join Date
    Jul 2009
    Location
    Colorado Springs, CO
    Posts
    52
    Answers
    1

    Default Answered: Long running Ajax request gives status of (Failed) with net::ERR_EMPTY_RESPONSE

    Hello All,

    Running in to odd Ajax Failed issue for a call that could take up to 10mins to complete. Basically after this POST request is made after 2mins the network request in Chrome is marked as failed.
    I've tried increasing the timeout within config for this request and seems to just be ignored. The server eventually returns a response but the browser has already failed the request.

    At a loss here for how to fix this one.

    Any ideas?

    Running Extjs 6.2.1.167

  2. What was your timeout set to?

    10 minutes may be a bit to ask a user to wait while the system is processing. You could handle it in the server side code where it takes a certain amount of time, send a response and prompt to the user you are processing the data.

  3. #2
    Sencha MVP Team Member
    Join Date
    Sep 2016
    Location
    Kennewick, WA
    Posts
    150
    Answers
    15

    Default

    What was your timeout set to?

    10 minutes may be a bit to ask a user to wait while the system is processing. You could handle it in the server side code where it takes a certain amount of time, send a response and prompt to the user you are processing the data.

  4. #3
    Sencha User
    Join Date
    Jul 2009
    Location
    Colorado Springs, CO
    Posts
    52
    Answers
    1

    Default

    Hi aallord,

    Thanks for the response. Yes I had a timeout set to 10mins. This is what I discovered. Apparently Chome has a default timeout for long running requests of 5mins which is not configurable. So you are right I had to modify my app to only wait for 5mins and then say too bad soo sad try again.

    Thanks,
    MD

Similar Threads

  1. Ext.Ajax.request processing JSON as returned by a long running server side script
    By alistairclare in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 3 Mar 2014, 12:20 AM
  2. Long parameter for Ext.Ajax.Request
    By hieu79vn in forum Ext: Q&A
    Replies: 11
    Last Post: 4 Sep 2012, 7:10 AM
  3. Replies: 0
    Last Post: 7 May 2012, 2:03 AM
  4. AJAX request with long running server task
    By unlex in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 13 Jan 2010, 7:15 AM
  5. kinds of status errors in Ajax request
    By dolittle in forum Ext 1.x: Help & Discussion
    Replies: 9
    Last Post: 25 Oct 2007, 7:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •