我正在使用ExtJS 4.1,並且在發生超時時在Google Chrome中收到未捕獲的異常。超時後未捕獲的異常Ext.Ajax.request在Chrome中
Ext.Ajax.timeout = 10000; // 10 seconds
Ext.Ajax.method = "GET";
Ext.Ajax.request({
url:'rest/dataloggerset.json',
params:{
sessionGuid:Ext.getStore("User").getAt(0).get("sessionGuid"),
loggerId:this.availableLogFiles.loggerId,
logSet:this.currentLog
},
success:this.processReceivedLogData,
failure:this.failureDuringResourceLoad,
scope:this
});
請求以超時結束,並且目前接收到的數據被嘗試在對象中解析。使我看到在開發者控制檯未捕獲異常的樣子:
未捕獲的錯誤:INVALID_STATE_ERR:DOM異常11個Connection.js:914個 Ext.define.createResponse Connection.js:914 Ext.define。的onComplete Connection.js:859個 Ext.define.abort Connection.js:767 request.timeout
這個問題在FF不上來。由於未捕獲的異常,我的方法failureDuringResourceLoad未被調用。
值得一提的是,當超過定義的超時值時,數據仍在傳輸。
有什麼想法?
你在本地主機上運行/或從file://運行? – A1rPun
localhost /分別http://server.com/ – Chris
好的。 [您是否檢查過其他SO條目?](http://stackoverflow.com/questions/2357430/invalid-state-err-dom-exception-11) – A1rPun