Try - Catch block on YouTube AS3 API - actionscript-3

I have a problem with managing exceptions (try-catch) in YouTube ActionScript 3 API. Well, in some enterprises, the users don't have access to YouTube because it's locked by the firewall, and I need to control the exception.
The error that I have is: Error #2044: IOErrorEvent not controlled: text=Error #2035: Can't find URL address.
How can I control this exception?
Thank you guys of StackOverflow, you save me a lot of times with previously answered questions, now I need your help :)
(Sorry for my English if I have some gramatical or ortographical errors, I'm not native English speaker)

Related

Forge server authentication error 2 Legged

I am new to forge. I have been trying to create a basic server and authentication using nodejs by following exact steps in the youtube training videos. But i am facing errors in the initial phase itself getting an error code: ECONNRESET. I have a feeling that my firewall is blocking the servers but not able to make anything concrete out of this. The url that i tried hitting is "http://localhost:3000/api/forge/oauth/token". For some reason it always goes to catch block. Kindly let me know how to debug the error, and figure out the urls that need unblocking if necessary.

Error on chromecast receiver app PLAYBACK/104

I have an html5 receiver app that I'm writing for a client who already has a sender app. On playing a video for a second time, I get this error:
[cast.player.api.Player] error
[cast.player.api.Host] error: cast.player.api.ErrorCode.PLAYBACK/104
I can't tell if this error is coming from my implementation of the media library or from the sender app. Any guidance?
You can see in the Media Player Library Error Codes that this error means "The media element fired MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED error." The suggested solution from the docs is to Validate developer data segment, ensure the codecs are included in Cast supported formats. You can read more about the cast.player.api here.

Unhandled IOErrorEvent:. text=Error #2038: File I/O Error

We are facing issue when we try to upload a file on flex UI on Mozilla browser.
We are using flash.net.FileReference object for uploading a file.
It works fine when we use IE7 or IE8.
Error reported on debug is:
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
We are new to flex, so we are not in a good position to understand the reason behind this error.
Any helpful answers will be appreciated.
Thanks.
some code would be helpful, but generally it should be fixed by listening to FileReference.IOErrorEvent like in this example
In addition to my comment. Any IOErrorEvent dispatched without listener(s) will throw an IO error -- even if you dispatch it by yourself.
One cause of this can be any failure status code response (4## or 5##) from the requested URL on the upload.

AIR app: navigateToURL throws a SecurityError #2193

I'm trying to port an existing web app (ActionScript 3 only project) to AIR, to run as a standalone application. One of its features is opening urls in a browser window. But calling navigateToURL(new URLRequest(url)) throws this SecurityError:
SecurityError: Error #2193: Security
sandbox violation: navigateToURL:
app:/AIRDigE.swf cannot access
http://www.youtube.com/watch?v=xCPwAr0xnGE.
at global/flash.net::navigateToURL()
when run from Flash Builder 4.
Googling doesn't really help me with this specific error number.
Adobe's reference on Security Sandboxes states that any AIR application running with Security.sandboxType==Security.APPLICATION (which my application uses) should be able to connect to any domain, but apparently that doesn't count for me.
Any ideas?
Thanks, Frank
Sorry folks, this morning I found the answer myself: the url that I passed into the URLRequest had a space in front of it (it was loaded from an xml feed that is evidently producing faulty urls).
So it seems that a url with an invalid protocol causes that error, and putting a trim() around the url fixed it.
I was getting this error because of using double backward slashes in the web link like "http:\\www.youtube.com"
Where as I supposed to use "http:*//*www.youtube.com"
try using URLRequest with navigateToURL
navigateToURL(new URLRequest("http://www.youtube.com"));
UPDATED:
navigateToURL(new URLRequest("http://www.youtube.com"),"blank");

bungie.net stats api

Has anyone tried accessing bungie.net reach stats api (statistics from Halo Matchmaking)?
As described here http://www.bungie.net/fanclub/statsapi/Group/Resources/Article.aspx?cid=545064
I can't seem to get any data returned, for example if i use this (with correct API key and gamertag values of course) ignore the first 2 asterisks ...
**http://www.bungie.net/api/reach/reachapijson.svc/player/details/byplaylist/MyIdentifierAPIkey/Gamertag
I don't receive a response - but no errors either, am i doing something wrong?
looking to use this for a Titanium (appcelerator) app eventually.
Any help or advice welcome, thanks in advance.
Unfortunately the API is not yet live to the public. I asked in a Private Message. They didn't say when it would be live.
In the Docs that Achronos posted, he put spaces in the URL's, I'm not sure if those are supposed to be there or not, so I tried it with the spaces and I got a 403 Forbidden error page. When I remove all the spaces, I get an error page that says:
Request Error
The server encountered an error processing the request. See server logs for more details.
I kinda can't check the server logs though... Bungie did say they were having some issues with the site though, so this might be a biproduct of that. I want them to get it working soon though, I wanna see just what it can do!