OData.request Timeout

May 30, 2012 at 3:12 AM

Hi Experts,

I have set the timeoutMS but the request doesn't respond back after the timeout was met. Any advice or examples?

Thanks in advance.

Below is a code snippet:

OData.request( {requestUri:queryserviceUri, headers: {"WWW-Authenticate":"myRealm","Authorization":auth, "Access-Control-Allow-Origin": "*", "Cache-Control" : "no-cache"}, timeoutMS: 15000 },

Best Regards,
Yi Ying

May 30, 2012 at 7:31 PM

Hi Yi Ying,

   If the request timeouts, then the error callback function should be fired instead of the success callback.  Can you confirm that this is the case?


Alex Trigo.