Unfortunately, unless I am mistaken, there is no way to tell if a script
tag failed to load or not and why it failed in this case. So all you are
getting is a timeout exception letting you know that something went wrong.

One approach for JSONP, is to ensure on the server side that all exceptions
are caught. In the response message to the jsonp request, you can then send
the status code or the exception message, but the actual http response code
to the jsonp request must be a 200.

Hope this helps.

Regards,

Alfredo

On Thu, Jan 26, 2012 at 10:12 AM, Fred <[email protected]> wrote:

> Hi,
>
> I'm trying to understand when the onFailure method of AsyncCallback is
> called. Even when I get for example a HTTP 500 response the function
> is never called.
>
> I've added a more specific question to Stackoverflow:
>
> http://stackoverflow.com/questions/9019123/in-gwt-when-is-the-asynccallbackonfailure-method-called-in-a-json-p-request-us
>
> Kind Regards
> Fredrik Dahlberg
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to