There is uncaught error with empty responsetext in modal popup window with response 200
ajax.js?v=8.6.15:500 Uncaught Drupal.AjaxError {message: "↵An AJAX HTTP error occurred.↵HTTP Result Code: 20…form/↵StatusText: OK↵ResponseText: ", name: "AjaxError"}
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | 3049216-21.patch | 577 bytes | gauravvvv |
| #20 | 3049216-nr-bot.txt | 144 bytes | needs-review-queue-bot |
| #16 | 3049216-16.patch | 1.23 KB | gauravvvv |
| #15 | 3049216-15.patch | 1.23 KB | gauravvvv |
| #14 | ajax_error_d9.patch | 738 bytes | deepika dhiman |
Comments
Comment #2
meshwetaComment #3
meshwetaComment #4
meshwetaComment #5
meshwetaComment #6
cilefen commentedComment #7
meshwetaComment #8
meshwetaComment #9
akalata commentedI'm also encountering a case where my AJAX request is returning an `AjaxError` message, even through my custom functionality completes successfully and the `XHR` response = 200.
However, I'm more willing to bet that there's something wrong with how I'm implementing the Ajax call, since the exact same code triggered slightly differently does not produce an error:
Comment #14
deepika dhiman commentedHi,
Here is the patch for Drupal 9.2.2.
Thanks
Comment #15
gauravvvv commentedRe-rolled patch #14, Please review.
Comment #16
gauravvvv commentedComment #20
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #21
gauravvvv commentedRe-rolled patch for 10.1.x. Please review
Comment #22
gauravvvv commentedComment #23
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
As a bug this will need a test case.
Also the issue summary needs to be updated with steps to reproduce, proposed solution, etc. Please use default template.
Comment #24
jimconte commentedThe patch for 10.1.x applies to 9.5.7