When the responseText is not json. In some tests, which were testing login errors, this was the case. I got responseText back as text but not json.