Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

Ajax call issue on Firefox when server takes long time to process

  • Žiadne odpovede
  • 1 má tento problém
  • 1 zobrazenie
more options

I have a ajax call which calls an batch process on server side. This process will take 20-30 mins to complete. On Firefox the ajax error method is invoking after around 1 hour. When I enable the logs the server side method is completing without an issue. But the ajax success method is not calling. After the server side method complete, ajax call is still active and after some time ajax error method is calling.

Furthermore, I have tried after adding a large timeout to the ajax call. But the result is same. Also when I runs small batch operation(around 2-3 mins). This ajax call is working on all the browsers including Firefox. Also for the same ajax call, when the severer takes long the to process, the browser is initiating a second request with same data. This is causing the server to process same data twice

Ajax Call configurations

async:true type:POST contentType:false processData:false

I have a ajax call which calls an batch process on server side. This process will take 20-30 mins to complete. On Firefox the ajax error method is invoking after around 1 hour. When I enable the logs the server side method is completing without an issue. But the ajax success method is not calling. After the server side method complete, ajax call is still active and after some time ajax error method is calling. Furthermore, I have tried after adding a large timeout to the ajax call. But the result is same. Also when I runs small batch operation(around 2-3 mins). This ajax call is working on all the browsers including Firefox. Also for the same ajax call, when the severer takes long the to process, the browser is initiating a second request with same data. This is causing the server to process same data twice Ajax Call configurations async:true type:POST contentType:false processData:false