Hi all, I'm getting an analytics feed through the API and it all works beautifully as a Java application. But when I try to get it to work on an AppEngine / GWT application I get timeout errors. Specifically the following:
java.io.IOException: Timeout while fetching: https://www.google.com/analytics/feeds/data?max-results=50&start-date=2010-10-02&end-date=2010-11-02&metrics=ga%3Avisitors%2Cga%3Avisits%2Cga%3AnewVisits%2Cga%3Apageviews%2Cga%3Abounces%2Cga%3AtimeOnSite&ids=ga%xxxxxx I am setting the connection and read timouts like this: analyticsService.setConnectTimeout(30000); analyticsService.setReadTimeout(30000); but the error doesn't go away. Researching this I believe this is caused by the app engine URLFetch timeout, which defaults to 5 seconds. (http:// code.google.com/appengine/docs/java/urlfetch/overview.html#Requests) The fetch from the analytics service takes in my case some 30 seconds, for several table_ids, so raising the timeout to 10 seconds won't help. Is there a solution? Thanks, Eyal -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-appengine-java?hl=en.
