Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery $.ajax xml状态为200,但出现错误_Jquery_Ios_Ajax_Xml - Fatal编程技术网

Jquery $.ajax xml状态为200,但出现错误

Jquery $.ajax xml状态为200,但出现错误,jquery,ios,ajax,xml,Jquery,Ios,Ajax,Xml,我使用jQuery.ajax请求我的服务器并获得xml响应。由于某些原因,某些用户会出现错误。状态代码是200,但我们继续执行错误处理程序:-目前我找不到任何一致的模式。例如,我可以从我的用户那里得到一个错误的请求url,然后在我的设备上尝试它-它可以工作!所以问题不在于url 请求代码: $.ajax({ url: "myserver.com/oauth.php?token="12345", // whether this is a POST or GET request

我使用jQuery.ajax请求我的服务器并获得xml响应。由于某些原因,某些用户会出现错误。状态代码是200,但我们继续执行错误处理程序:-目前我找不到任何一致的模式。例如,我可以从我的用户那里得到一个错误的请求url,然后在我的设备上尝试它-它可以工作!所以问题不在于url

请求代码:

$.ajax({
    url: "myserver.com/oauth.php?token="12345",

    // whether this is a POST or GET request
    type: "GET",
    async: false,
    dataType : "xml",

    success: function( response ) {
        console.log('parsing XML response');
        ...
        return true;
    },

    error: function( xhr, status ) {
        console.log("error status " + status);
    },
});