Ext.Ajax.request没有任何理由不起作用

时间:2015-09-18 11:27:20

标签: android ajax extjs request sencha-touch-2

我有一个很大的问题,我在互联网上找不到解决方案。当我想在我的移动设备上登录我的应用程序(Android上的Sencha Touch App)时,除了失败之外没有任何事情发生。 我认为不会发送任何请求,因为后端没有收到任何请求。

我已设置library(jsonlite) library(dplyr) df1 <- fromJSON( ' [ { "total": 5, "weeks": [ { "w": 1428192000, "a": 0, "d": 0, "c": 0 }, { "w": 1428796800, "a": 0, "d": 0, "c": 0 } ], "author": { "login": "ttuser1234", "id": 111111111 } }, { "total": 18, "weeks": [ { "w": 1428192000, "a": 212, "d": 79, "c": 5 }, { "w": 1428796800, "a": 146, "d": 67, "c": 1 } ], "author": { "login": "coder1234", "id": 22222222 } } ] ' ) # now the weeks column will actually be nested data.frames # we can sort of join the weeks with the author information # like this df_joined <- df1 %>% do( data.frame( .[["author"]], bind_rows(.[["weeks"]]) ) ) ...

希望有人有个主意。

<access origin="*" />

输出数据和请求:

Ext.Ajax.request({
    url: fullUrl,
    params: params,
    method: "GET",
    //enable basic authentication
    withCredentials: true,
    // need useDefaultXhrHeader: false and disableCaching: true to get cookies to work.
    useDefaultXhrHeader: false,
    disableCaching: true,
    username: credentials.username,
    password: credentials.password,
    timeout: 10000,
    success: function (data) {
        callback(self._handleSuccessResult(data.responseText));
    },
    failure: function (data, request) {
        callback(self._handleErrorResult(data));
    }
});

和桌面浏览器代码:

data : {
    "request" : {
        "id" : 1,
        "headers" : {
            "Authorization" : "Basic XXXXXXXXXXXXX"
        },
        "options" : {
            "url" : "https:XXXXXXXXXXXX",
            "params" : {
                "i_uname" : "KLAUS",
                "datatype" : "GET"
            },
            "method" : "GET",
            "withCredentials" : true,
            "useDefaultXhrHeader" : false,
            "disableCaching" : true,
            "username" : "XXXXXXXXX",
            "password" : "XXXXXXXXX",
            "timeout" : 10000
        },
        "async" : true
    },
    "requestId" : 1,
    "status" : 404,
    "statusText" : "Not Found",
    "responseText" : "",
    "responseXML" : null,
    "responseBytes" : null
}

request : {
    "url" : "https:XXXXXXXXXXXXX",
    "params" : {
        "i_uname" : "KLAUS",
        "datatype" : "GET"
    },
    "method" : "GET",
    "withCredentials" : true,
    "useDefaultXhrHeader" : false,
    "disableCaching" : true,
    "username" : "XXXXXXXXXXXXX",
    "password" : "XXXXXXXXXXXXX",
    "timeout" : 10000
}

0 个答案:

没有答案