软硬度:HTTP请求错误#2032 [英] Flex: HTTP request error #2032

查看:181
本文介绍了软硬度:HTTP请求错误#2032的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Flex 3的应用程序,我使用的的HTTPService 的类来发出请求到服务器:

In Flex 3 application I use HTTPService class to make requests to the server:

var http:HTTPService = new HTTPService();
http.method = 'POST';
http.url = hostUrl;
http.resultFormat = 'e4x';
http.addEventListener(ResultEvent.RESULT, ...);
http.addEventListener(FaultEvent.FAULT, ...);
http.send(params);

该应用程序有彗星架构。因此,它使长时间运行的请求。在等待该请求的响应,其他请求可同时进行。

The application has Comet-architecture. So it makes long running requests. While waiting a response for this request, other requests can be made concurrently.

应用程序适用于大多数情况下。但有时有些客户拿到的HTTP请求错误执行长时间运行的请求:

The application works in most cases. But sometimes some clients get HTTP request error executing long running request:

faultCode:Server.Error.Request
faultString:'HTTP request error'
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://example.com/ws'

我认为这取决于用户的浏览器。

I think it depends on user's browser.

任何想法?

推荐答案

我经历了同样的问题,当我不再发送(3-4K!)参数的Htt prequest。当我发小的,它的工作(不刷新,刷新或任何东西)。我不知道是否有在客户端或者在您可以发送,但肯定这会导致问题的参数长度的Web服务器端的限制。
URL限制可能会导致它

I experienced the same problem when I sent longer (3-4K!) parameter in HttpRequest. As soon as I sent smaller ones it worked (without refresh, reload or anything). I do not know if there is a limit on client side or on web server side of the length of parameters you can send but definitely this causes the issue.
url limitations may cause it

这篇关于软硬度:HTTP请求错误#2032的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆