same problem.

url:
http://www.google.cn/rebang/clip?bid=12000000


On Jul 17, 5:04 am, "Jason (Google)" <[email protected]> wrote:
> Typically, when you hit the URL Fetch timeout, 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 the timeout of 5 seconds that
> > is preventing app engine receiving the response.
> > Can the timeout be 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