Error #2032: Stream Error.
This is the most read post on this site. After reading this please post your comments to help future visitors.
Causes:
This error appears to occur when the url or file is blocked or not found by HTTPService call. For me, this error appeared when I had typed in the incorrect url in the HTTPService url property. Specifying the correct URL fixed it. To check this you can check your URL for typos or try to access the URL outside of your app to make sure it is there. Use Service Capture, Charles or Firebug to inspect the response from the server. If the file is not found the server still sends a response back (html or xhtml (xml)). Note: Additional tips and use cases are mentioned in the comments.
This error is also caused by a swf trying to access a file across a restricted domain. It’s not going to get the file if it is not allowed to access it. This behavior then generates the error. The fix in is to add a cross-domain policy file to the domain where the page is located at. The cross-domain file must specify that your domain (or any other domains) can access that URL. You can also use a proxy on your server to get the file (I have heard that there are issues with this approach with caching in certain situations).
Another cause for this error in certain browsers is caching. Use JabbyPanda’s technique to prevent caching in IE6 or set the response headers in your server side page to prevent caching.
A note from Mike Chambers:
If you run into this using URLLoader, listen for the:
flash.events.HTTPStatusEvent.HTTP_STATUS
and in AIR :
flash.events.HTTPStatusEvent.HTTP_RESPONSE_STATUS
It should give you some more information (such as the status code being returned from the server).
Please reply in the comments below if this helped you or not. You can also use the Error Lookup Tool to look up Flex compiler or runtime errors. more info…
I got this #2032 error from relative paths in a XML. Used with URLRequest() to load a mp3. Weird enough the same XML contained relative paths to flv video’s, loaded via FLVplayback.play(), but that worked fine! :S
I’ve also come across the dreaded “2032″ error when using URLLoader to load a php file on our server, but it appears to have nothing to do with the URL being incorrect, rather, it seems that the SWF is having trouble reaching our site entirely. Here’s the code I’m using:
private var server_dir_loader:URLLoader = new URLLoader;
server_dir_loader.load(new URLRequest(“http://www.megadev.co.uk/gg2/directory.php” + “?” + new Date().valueOf()));
server_dir_loader.addEventListener(Event.COMPLETE, serverDirectoryLoaded);
server_dir_loader.addEventListener(ProgressEvent.PROGRESS, serverDirectoryProgress);
server_dir_loader.addEventListener(IOErrorEvent.IO_ERROR, serverDirectoryIOError);
server_dir_loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, serverStatus);
…and here are the errors:
serverStatus([HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=503])
serverDirectoryIOError([IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.megadev.co.uk/gg2/directory.php?1269483330328"])
Eight times out of ten the php file is successfully loaded and executed, but that’s just not reliable enough. We don’t have a particularly fast server, but you’d still expect loading a 1kb file to not cause too many problems. What’s strange is that on receiving the IOError I try loading the php file again but continually get same error, yet if I restart the SWF then more often than not it will load the file without any problems. Does anyone out there know where I’m going wrong?
Cheers,
Mike.
You can not have special characters (@#$&^%) in media name.
I was happily developing using WAMPSERVER2 when I made a few changes in the server settings and my perfectly-working code started throwing the dreaded and ambiguous “Error #2032″ after calling HttpServer.send(). After a considerable amount of experimentation, it appears that what caused this error to appear was my changing from PHP version 5.3.0. to 5.3.1; switching back to 5.3.0 rendered my code working again. I haven’t checked if the same problem persists in PHP 5.3.2.
I am facing this problem only in IE6 but in rest of all it is fine.
So URL typo and crossdomain.xml problems are not causing this issue.
May be the last reason “Caching” is the probelm. But unfortunately the link that you have suggested “http://www.jabbypanda.com/blog/?p=16″ does not seem working.
I’v been trying to open an application on facebook, every time only this specific application gives me this error, and starts pop up .bin files to download, how can i fix it? i updated java, i updated flash player, i even updated IE and firefox, and it didnt work.
Help please :(
I got the same error testing a chatroulette clone script.
The situation was that for testing purposes I used my Url with the directory and not directly input the domain. Example: I used http://www.myhostingdomain.com/subdirectorywherechatrouletteclone instead of http://www.mydomainforchatroulette.com
At last my problem get resolved. Caching is the only problem.
I tried to set header like
response.addHeader(“Cache-Control”,”no-cache, no-store, must-revalidate”);
This get worked.
Previously we were setting ‘no-cache’ whereas IE6 is HTTP/1.0 that’s why it is unable to understand ‘no-cache’. To overcome these dependencies, now we were setting both ‘no-cache’ and ‘no-store’.
Ghada:- I don’t get your problem.
Is your problem related to #2032 stream error (or) opening popup?
What is your browser?
I am not sure that you will get stream error only on facebook.
I ran into this as well. The strange thing is, the error was reported on the line I initiated a Sound object, and not on the line where I asked it to load a non-existing file. Broke my head that one did, so I hope it doesn’t break yours, whoever reads this next.
I’ve got this issue too. The problem was in server side PHP script. Error in SQL query, so when try with no parameters in browser – everything was ok, but when pass params from air app – server return sql error, and application get #2032.
Now everything is workin.
I am using httpService… when i pass large chunk of data with POST method i get this error and if I pass small text it works perfectly…. any clues?
I get following error
rror #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://xyz.com/MVCSite
at TestMVC()
Hi
I spent a couple of days struggling with AS3 errors #2032 and #2044 while making a swf that submitted a name and score to a PHP page which put them in a MySQL database. I wrote the cause and solution in a blog post at:
http://peizweb.com/blog/?p=53
Hope it stops some other folks losing valuable hours as the causes were not obvious.
I started my web server and going to run the application and my system restarted. When i came back I tried to run application without starting web server. Because according to me I fired the server… After 15 mins of code review I searched and OOOPSsssss I found what I was doing wrong from this blog…
Thanks alot
Got same problem while importing data from txt file
There is one other reason this can happen. If you only see #2032 over HTTPS with IE, its a bug in IE. IE doesn’t properly interpret HTTPS streams with no-cache headers set.
See http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_fds.html
Options are to not set the header, or if you are using channels, there is a workaround shown in the above link.
Heya Juda, I had same issue in AIR app with httpService call. Issue was a result of malformed URL. It was initially interesting because the call would work on first send(), where successive calls failed with 2032. Following inspection of the fault event, I noticed that my url headers were missing, as I am building them dynamically. The problem was not with httpService but with how I was managing headers for recurring calls.
Anyway, I was able to define the problem quickly by inspecting the event.fault.message of the FaultEvent.
hth
Doug
@thx doug!
Had decoding error with soap response of call to web services. Turn out it was #2032 and the Flex SDK was trying to decode an empty string because of that.
Those errors appeared randomly regardless of the service call, but usually when several services were called at the same time, and only on internet explorer (6, 7 and 8)
Even if those were POST request and not GET, adding the HTTP header “Cache-Control : no-cache” to each SOAP response seems to have solved the issue.
[...] hilft dies: Error #2032: Stream Error. judah’s blog __________________ Es war schon immer etwas teurer, einen guten Flash Film zu machen. [...]
I’m getting this #2032 error using ITV Live streaming service.
Error from XML_ERROR:
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
I only get this error in Firefox. It loads in ie8, Safari, Opera and Chrome. I’m not sure if this is a Firefox problem or an ITV problem. The requirements state that it should be able to work in Firefox.
[...] and I Google around and found the one of the best source related to Flash Errors on web which is Judah’s blog So in case you are not looking to .net related problem please go through the post and responses in [...]
I got this error #2032 but it was only in Chrome and not in any other browser. So when i drilled down the problem it boils down to ASP.net related issue. I blogged my experience with the problem and all reference i used including this blog in solving the problem at http://viveklakhanpal.wordpress.com/2010/07/01/error-2032ioerror/
Thanks Everyone,
Vivek
hello
i got this problem when using an sqf player which i downloaded from
http://tamilsflashfm.com/music/player-viral.swf
when i load the video using that sqf player , it worked fine
but when i download it and tried using it on my own , i got the error 2032
hope some 1 give any idea to fix