AJAX requests (e.g. calling $.get() or $.ajax()) sometimes fail without calling any of the callback functions
|Reported by:||CrazyChoco||Owned by:||CrazyChoco|
We usually like to be quite bleeding edge when it comes to jQuery releases, and we've been trying out jQuery version 1.7.1 for just over a month now for our AJAX-based applications.
Unfortunately we are occasionally seeing a problem when using jQuery to launch AJAX requests.
Occasionally a request will fail for some reason (which may be legitimate, e.g. due to a network issue or timeout). However sometimes jQuery will then not call the "success" function it was passed, *and* not call the error handler function registered by $.ajaxSetup(). This effectively causes an AJAX-based application to "stall", as without the success function or the error-handler being called to let it know that it can continue, it just sits there waiting.
This event seems very rare (definitely less that one time in 100) but can be reproduced eventually by sitting down and using an application for long enough. By adding debug information we have narrowed the problem down to the calls to $.get() and $.ajax(), and are reasonably confident that it is a problem with the error handlers not being called.
Nobody can remember these problems happening in jQuery 1.6.4, so we suspect it may be a reasonably recent problem.
Change History (8)
comment:6 Changed 4 years ago by dmethvin
- Owner set to CrazyChoco
- Status changed from new to pending
comment:7 Changed 4 years ago by CrazyChoco
- Status changed from pending to new