出现错误#2032:仅在Chrome上运行Flex应用程序时出现流错误

时间:2013-08-21 08:27:19

标签: flash flex google-chrome rpc httpservice

当我在Chrome上运行我的Flex应用程序时,我遇到了一个疯狂的错误,当服务器HTTP响应时它只是一个内部服务器错误(500)。它在Firefox和IE上完美运行。

使用Fiddler,我知道服务器正在给出正确的响应。包含错误消息的短XML数据内容出现500错误:

HEADER:

HTTP / 1.1 500 LoginFailedException

缓存控制:私有

Content-Type:application / xml

服务器:Microsoft-IIS / 7.5

X-Powered-By:ServiceStack / 3.85 Win32NT / .NET

X-AspNet-Version:4.0.30319

X-Powered-By:ASP.NET

内容长度:319

DATA:

<LoginDtoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"><ResponseStatus><ErrorCode>V2LoginFailedException</ErrorCode><Errors /><Message>Invalid username or password. Please try again.</Message><StackTrace i:nil="true" /></ResponseStatus></LoginDtoResponse>

但回到Chrome后,回复完全没有了,我得到了这个:

  

HTTP请求错误   Server.Error.Request   错误#2032:流错误

使用Flex RPC HTTPService,我尝试更改调用标头,这就是我进行调用的方式(GET和POST):

httpService = new HTTPService();
        httpService.resultFormat = "e4x";
        httpService.concurrency = "single";
        httpService.requestTimeout = 90;
        httpService.useProxy = false;
        httpService.headers["pragma"] = "public";
        httpService.headers["DNT"] = "1";
        httpService.headers["Cache-Control"] = "no-store";

系统有一个crossdomain.xml,我验证了它似乎没问题。

此外,我尝试使用Abobe Flash插件更改Chrome Flash插件,但没有结果

enter image description here

当然尝试谷歌它(事实上花了一天半)似乎很久以前用IE 7发生了,但从来没有用过Chrome。

显然,一些狡猾的东西正在发生,这让我发疯了!请欢迎任何建议。

非常感谢!

1 个答案:

答案 0 :(得分:0)

在我的情况下,在Flash上​​的这个版本中工作正常

enter image description here