Timeouts to Paypal

261 views
Skip to first unread message

Vivek Puri

unread,
Nov 30, 2011, 4:27:47 PM11/30/11
to Google App Engine
For the past couple weeks, we have been getting timeouts on urlfetch
requests made to Paypal. We have set deadline of 55 seconds, and even
then the request times out. If anyone else is also facing similar
issue, please respond. Also, if anyone from GAE team has any ideas on
this, please let me know.

Brandon Wirtz

unread,
Nov 30, 2011, 4:49:02 PM11/30/11
to google-a...@googlegroups.com
Pay pal throttles by IP, you should use their Call back method where you
submit the request, and they hit a url when the transaction is processed.
Also consider using a proxy to do the submission.

--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengi...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.


Ikai Lan (Google)

unread,
Dec 2, 2011, 1:03:53 PM12/2/11
to google-a...@googlegroups.com
Vivek, is this to the Paypal sandbox or the real Paypal API?

The sandbox has been observed as being pretty slow, but the real API is supposed to be much better.

--
Ikai Lan 
Developer Programs Engineer, Google App Engine

Vivek Puri

unread,
Dec 3, 2011, 1:01:23 PM12/3/11
to Google App Engine
Ikai

This is the production Paypal. Timeouts are happening in 1 out of 10
urlfetch calls.


Thank you

John Wheeler

unread,
Dec 6, 2011, 9:37:49 PM12/6/11
to google-a...@googlegroups.com
Hey, we had to set up a reverse NGINX proxy through AWS EC2 to communicate with the PayPal production server. We could never get it to work reliably directly from GAE. I don't know why.

John Wheeler

unread,
Dec 20, 2011, 11:21:33 PM12/20/11
to google-a...@googlegroups.com
Is there any update to this? Apparently you can not call PayPal from the development server either. When I try to call api-3t.paypal.com I get SocketTimeoutExceptions 100% of the time from the development server. If I run the same URLFetch code (which I've implemented as java.net.URL HttpUrlConnection, etc) from a public static void main, it works just fine.

How can this be Google?

John Wheeler

unread,
Dec 20, 2011, 11:48:03 PM12/20/11
to google-a...@googlegroups.com
Scratch the last comment. For anyone else having the problem, you'll need to set your connection/read timeout to 10+ seconds on URL fetch. I had it set to 5 seconds, and that is not enough.

Vivek Puri

unread,
Dec 20, 2011, 11:55:51 PM12/20/11
to google-a...@googlegroups.com
I was still getting timeouts and finally put a proxy in place to avoid further issues.

Ikai Lan (Google)

unread,
Dec 21, 2011, 2:13:52 PM12/21/11
to google-a...@googlegroups.com
Oy, okay. I'll see if I can get to the bottom of this. As far as I know we're not doing anything to people accessing Paypal, so it might be something on their end. Have you guys asked in their developer forums? If so, can you link me to the thread so I can reach out to some folks at Paypal that I know?

--
Ikai Lan 
Developer Programs Engineer, Google App Engine



On Tue, Dec 20, 2011 at 8:55 PM, Vivek Puri <v...@vivekpuri.com> wrote:
I was still getting timeouts and finally put a proxy in place to avoid further issues.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/oJXkjJAhJA0J.

Vivek Puri

unread,
Dec 21, 2011, 2:16:35 PM12/21/11
to google-a...@googlegroups.com

Ikai Lan (Google)

unread,
Dec 21, 2011, 2:18:45 PM12/21/11
to google-a...@googlegroups.com
Thanks Vivek. I'll see if there's a better long term solution for these problems.

--
Ikai Lan 
Developer Programs Engineer, Google App Engine



On Wed, Dec 21, 2011 at 11:16 AM, Vivek Puri <v...@vivekpuri.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/wR0HPmyuJrsJ.

Brandon Wirtz

unread,
Dec 21, 2011, 2:19:15 PM12/21/11
to google-a...@googlegroups.com

They throttle by IP, and the Fetches IP pool isn’t large enough for the number of PayPal Users.  

 

I don’t think they like you much because they didn’t seem interested in fixing the issue. I filed a support ticket.  I suspect if you called and said “Hi, this is Google” you’d get farther than I did.

Reply all
Reply to author
Forward
0 new messages