I am developing a web application on Google App Engine for Java…
In this web app, I am calling an API which does some computation and returns data to my application in JSON format… The problem is that all the time there is a timeout error.
As per GAE for JAva docs, we cannot explicitly set the timeout to a user desired value when using java.net…Does this mean that I cannot code my application on Google App Engine? Because the particular API call that is giving timeout error repeatedly, is central to the application that I am working on… I just cannot create the application excluding this specific API call (that is giving timeout).
Is there some way to resolve this? Or do I have to shift away from Google App Engine(for this app at least…)?
Have you tried using the low-level API instead of java.net? Call
setDeadline()onFetchOptions, passing in seconds as a double, or use the equivalentFetchOption.Buildermethod.