PDA

View Full Version : Error 2032 - Stream error


blu3
11-30-2007, 05:52 PM
I am having a problem where my Flex application dipplays this error:

faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error.

Error is displayed every time i use HTTPService for connecting to a simple .php script:

<?php

include('file_handler.php');

$f = new file_handler("server_address", 80, "username", "password", "url", WEBDAV);

?>

I should mention that .php script work just fine when executed directly from browser and basically what it does is connect to a remote server using webdav protocol through custom 'file_handler.php' class. If i remove the line:

$f = new file_handler("webct.carnet.hr", 80, "username", "password", "url", WEBDAV);

used for connecting error is not displayed. I googled and didn't find any solution and what's even worse i don't know what's the problem? Can someone help me on this?

thanks in advance

Jim Freer
12-01-2007, 01:30 AM
Have you confrmed that the server is configured for WEBDAV?

jim
http://freerpad.blogspot.com/

blu3
12-01-2007, 08:20 AM
Yes i have, that shouldn't be the problem. However, after a lot of research i found out that this error is connected with Flash Player + SSL(https) problem and my external class for webdav connection uses the ssl so i think that might be the problem or at least part of it.

cheers Jim

acallea
12-24-2007, 12:49 PM
Hi Blu3,

We are experiencing the same problem, could you find a fix for it?

Txs,

blu3
12-24-2007, 05:16 PM
Hi Blu3,

We are experiencing the same problem, could you find a fix for it?

Txs,



Sorry mate but i didn't find the solution to this problem :(

revanisle
01-22-2008, 07:33 PM
near as I can figger it has to do with the swf's security sandbox settings. By default, a Flex swf running locally is in the "local with filesystem" (or whatever it's called) sandbox, which means it can access data on the local system (local shared objects) but not the network (meaning anything that's not on your machine - LAN, internet whatever). A good test is if your call succeeds when the swf is uploaded to the net but fails when you're working on that same swf on your local machine, it's a security sandbox issue. In Flex you set the security sandbox as a compiler directive, but I'm not sure exactly how (or if that's exactly right, but I think it is). Google "Flex security sandbox" (or Flash - they're both affected) to learn more.
R

hangalot
01-22-2008, 08:20 PM
you should not get that error when you are running inside flex builder or the web page is on the same domain as the server. if you are running it as a stand alone swf either look at air or look at the allowDomain and crossdomain files

i normally don't use httpservice tags (or even the service itself) prefering to use urloader when i load REST