Thanks Alfredo. That makes it a lot clearer. I see why this is not working now. I guess we have to either start calling the json service from the server side (avoiding json-p) or we have to modify the service so that it always returns the exception in a 200 response.
Cheers Fred On 26 Jan, 19:44, Alfredo Quiroga-Villamil <[email protected]> wrote: > 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-asyncca... > > > 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.
