flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Flex's HTTPService dispatches a ResultEvent instead of a FaultEvent
Date Tue, 27 May 2014 04:37:27 GMT
Use a network monitor to be sure a 401 was returned to the device.

You can try running a low level test using URLLoader to see if it is the
runtime or Flex that is not doing the right thing.

-Alex

On 5/26/14 12:14 PM, "storo84" <sebastiantoro84@gmail.com> wrote:

>I would like to know when does Flex's HTTPService launches a ResultEvent
>and
>when does it dispatches a FaultEvent.
>
>When the servers response contain a 401 http status code error
>(Unauthorized), the HTTPService is dispatches a ResultEvent instead of a
>FaultEvent. I would assume that it should dispatch a FaultEvent. Am I
>correct? If not please tell me.
>
>The amazing thing is that when I'm running the application under the Flash
>Builder 4.7's Android Simulator, it does dispatch a FaultEvent, but when I
>run it on the device, it dispatches the ResultEvent. Why is this
>happening?
>Any ideas?
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Flex-s-HTTPService-dispatch
>es-a-ResultEvent-instead-of-a-FaultEvent-tp6638.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Mime
View raw message