Please see this thread as well
http://groups.google.com/group/google-analytics-data-export-api/browse_thread/thread/e9ae541d3243f3a5/d9540b7e5ecc2ce5?lnk=gst&q=timeout#d9540b7e5ecc2ce5

On Aug 31, 12:16 pm, Spanishgringo <[email protected]> wrote:
> > Is Analytics the only Google Data API that you have this issue with?
>
> Yes.
>
> > Have you tried making requests from outside of App Engine (e.g. a local 
> > Tomcat
> > server) to see if the responses come faster?
>
> Yes and it works fine with tomcat locally.  I am positive the issue is
> the AppEngine's short timeout limit for responses.  The problem in my
> opinion is that Google Analytics cannot normally respond that quickly
> to a request. It needs more time to crunch and prepare the numbers for
> the response.
>
> -Michael
>
> On Aug 28, 7:28 pm, "Jason (Google)" <[email protected]> wrote:
>
>
>
> > Hi. Sorry for the lapse. At present, your options are limited. The current
> > release of the Java SDK does not support configurable deadlines, and I'll
> > have to follow up to see when this will be available.
> > Is Analytics the only Google Data API that you have this issue with? Have
> > you tried making requests from outside of App Engine (e.g. a local Tomcat
> > server) to see if the responses come faster?
>
> > - Jason
>
> > On Fri, Aug 28, 2009 at 5:00 AM, Spanishgringo <[email protected]> wrote:
>
> > > ping
>
> > > On Aug 18, 3:13 pm, Spanishgringo <[email protected]> wrote:
> > > > I am having a problem using GData Client for Google Analytics because
> > > > most queries take longer than 5 seconds for the servers to process.
> > > > As is, I usually get a networktimeoutbecause App Engine URLFetch is
> > > > capped at 5 seconds.
>
> > > > Please coordinate with the GData team (Especially for Analytics) to
> > > > work out a solution.  The apps should work well together but today it
> > > > is impossible to support any meaningful application in App Engine
> > > > using the Analytics API for Java.
>
> > > > Thanks,
> > > > Michael
>
> > > > On Jul 16, 11:04 pm, "Jason (Google)" <[email protected]> wrote:
>
> > > > > Typically, when you hit the URL Fetchtimeout, you will see a more
> > > helpful
> > > > > and explanatory exception as opposed to "Unknown." The answer to your
> > > > > question is "not yet" -- the URL Fetch deadline is fixed at 5 seconds
> > > but
> > > > > will be configurable in a later release --- but I don't think this is
> > > the
> > > > > issue here. Can you share the URL that you're trying to fetch?
> > > > > - Jason
>
> > > > > On Wed, Jul 15, 2009 at 1:43 AM, BarberNet <[email protected]>
> > > wrote:
>
> > > > > > Looking more into this, I suspect it is thetimeoutof 5 seconds that
> > > > > > is preventing app engine receiving the response.
> > > > > > Can thetimeoutbe made configuarable as in the Python SDK? (up to 10
> > > > > > sec)
>
> > > > > > On Jul 15, 12:13 am, BarberNet <[email protected]> wrote:
> > > > > > > Get following error ONLY when deployed to google apps not on local
> > > > > > > development server.
>
> > > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
> > > > > > > $Connection.getHeaderField(URLFetchServiceStreamHandler.java:196)
> > > > > > >         at java.net.URLConnection.getContentType(Unknown Source)
> > > > > > >         at com.saucysounds.payment.MobilePayPalAPI.httpcall
> > > > > > > (MobilePayPalAPI.java:166)
> > > > > > >         ... 43 more
> > > > > > > Caused by: java.io.IOException: Unknown
> > > > > > >         at
>
> > > > > > > line producing error is:
> > > > > > >                         int rc = conn.getResponseCode();
>
> > > > > > > taken from the following code snippet:
>
> > > > > > > postURL = new URL(gv_APIEndpoint);
> > > > > > >                         conn = (HttpURLConnection)
> > > > > > postURL.openConnection();
> > > > > > >                         logger.info(postURL.toString());
> > > > > > >                         conn.setDoInput(true);
> > > > > > >                         conn.setDoOutput(true);
>
> > > > > > >                         conn.setRequestProperty("Content-Type",
> > > > > > "application/x-www-form-
> > > > > > > urlencoded");
> > > > > > >                         conn.setRequestProperty("User-Agent",
> > > agent);
> > > > > > >                         conn.setRequestProperty("Content-Length",
> > > String
>
> > > .valueOf(encodedData.length()));
> > > > > > >                         conn.setRequestMethod("POST");
>
> > > > > > >                         output = new
> > > > > > DataOutputStream(conn.getOutputStream());
> > > > > > >                         logger.info(encodedData);
> > > > > > >                         output.writeBytes(encodedData);
> > > > > > >                         output.flush();
> > > > > > >                         output.close();
>
> > > > > > >                         int rc = conn.getResponseCode();
> > > > > > >                         logger.info("response code: "+rc);
> > > > > > >                         if (rc != -1) {
> > > > > > >                                 BufferedReader reader = new
> > > > > > BufferedReader(new InputStreamReader(
>
> > > conn.getInputStream()));
> > > > > > > ....
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to