它有点奇怪,第一次调用 web 服务调用,但从第二次开始我得到这个奇怪的错误。
this.save(requestObject, {
success: function (response) {
callback(response.toJSON());
},
error: function (res, result, xhr) {
}
});
我第一次收到回调,为什么第二次就失败了?下面是错误日志。
HTTP Error (org.apache.http.client.HttpResponseException): 596
[ERROR][TiHttpClient( 478)] org.apache.http.client.HttpResponseException: 596
[ERROR][TiHttpClient( 478)] at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:240)
[ERROR][TiHttpClient( 478)] at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:199)
[ERROR][TiHttpClient( 478)] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
[ERROR][TiHttpClient( 478)] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)
[ERROR][TiHttpClient( 478)] at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1217)
[ERROR][TiHttpClient( 478)] at java.lang.Thread.run(Thread.java:1020)
[ERROR][V8Exception( 478)] Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected token <