I'm trying to use the UrlFetch API to test my Paypal integration on the
development server. When I send a badly formatted request I quickly get
an error reponse from Paypal's sandbox server. However, as soon as I
issue a valid request, it takes too long to process and I get a timeout
error.


I have tried both with the java.net API and the low-level URLfetch API,
in both cases extending the deadline to 10s via
URLConnection.setConnectTimeout(10000) and/or
request.getFetchOptions().setDeadline(10d);


It seems this is not enough, however, as I keep getting:
[WARN] /testpaypal.do: java.io.IOException: Timeout while fetching:
https://api-3t.sandbox.paypal.com/nvp



1) It looks like the timeout occurs well before 10s have elapsed

2) I hear the Paypal sandbox server is slower than the production server
3) I bet my personal internet connection is slower than AppEngine's
4) I just want to test, I don't care about AppEngine's timeout for now


For all these reasons, I'd love to be able to extend the URLFetch
timeout on the development server to more than 10s -- in fact, just
extending it to a real 10s would already be great.


Any idea on how to do that? Or how to test that efficiently?


Anybody has had success integrating with PayPal on App Engine?

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to