jquery ajax ignores 500 status error

前端 未结 3 2019
情歌与酒
情歌与酒 2020-12-10 13:02

I\'m making some GET requests to an App Engine app, testing in Chrome. Whilst I can see in javascript console that some calls result in a 500 server error, I can\'t seem to

3条回答
  •  一生所求
    2020-12-10 13:16

    Solved the problem by upgrading jQuery from 1.9.1 to 2.1.1 — now it started calling .error() right on the server response (before it would ignore the 500 response and wait until timeout is over).

    Limitation: jQuery 2.1.1 does not support IE8 and below (as IMO shouldn't you)

提交回复
热议问题