Error #2032 IOError in URLLoader.load()

posted by codders in actionscript, flash

Long time no see.

This one cost me a certain amount of time and pain, so I thought I’d share the wealth. We’re in ActionScript3, and we’re looking at mysterious error messages. Every time my application loaded in 64-bit Flash on Linux, I was getting a #2032, but no bad HTTP responses in the Firebug Net Console. Because it was 64-bit, I didn’t have a debug version of the player available, and was unable to get any stack traces. Fortunately, the application uses the very fine SOS Logging Framework, so I was able to do some log-based debugging and track the issue down to a call to URLLoader.load(). Unfortunately, you can’t really get any deeper than that.

The player didn’t like the URL. It generated an IOErrorEvent with no additional explanation. It didn’t try sending it over the network. The URL was well formed and looked similar to all the other URLs I was using. We had had sporadic reports from users, but I was only able to reproduce it on my work desktop (and only the 64-bit Firefox, not the 32-bit chroot).

Long story short, if you’re using an ad blocker like AdBlockPlus and the blacklist matches the URL of your URLRequest, Flash will return you a mysterious Error #2032. In particular, this URL contained the word ‘adverts’ – silly me.

The more you know