Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paypal Website Payment Pro on Barracuda: GnuTLS recv error (-9): A TLS packet with unexpected length was received. #176

Closed
zkrebs opened this issue Jan 14, 2011 · 7 comments

Comments

@zkrebs
Copy link

zkrebs commented Jan 14, 2011

I follow the guidelines to set up my Paypal WPP account and then put in an order on live server, it returns error in log without finalizing order:

" GnuTLS recv error (-9): A TLS packet with unexpected length was received."

@zkrebs
Copy link
Author

zkrebs commented Jan 14, 2011

I also found this: https://bugs.launchpad.net/gwibber/+bug/626023/comments/28 - is this relevant? I'm on Ubuntu 10.04

"The only way i managed to get rid of that error, was by recompiling libcurl with OpenSSL instead of GnuTLS and then recompiling python-pycurl against the new cURL library.
"

@mclendening
Copy link

mclendening commented Jan 14, 2011

I will say this about the Paypal WPP service...I have been on it since it was available and find most (if not all) of our headache problems to be related to a dependency between some platform library and curl.

Peace,
Michael Clendening

@zkrebs
Copy link
Author

zkrebs commented Jan 15, 2011

Steps to reproduce

  1. Install / Configure Drupal site on Aegir platform (Barracuda Aegir HEAD - mine is as of 1/1/2011)
  2. drush dl ubercart
  3. drush en ubercart and relevant modules - credit card, paypal gateways.
  4. Set up a Business Account with Paypal and sign up for Website Payment Pro (costs $30/month). Follow this guide: http://www.ubercart.org/paypal
  5. Make sure your credit card payment settings are set up correctly: http://www.ubercart.org/docs/user/14512/credit_card_settings - i put my keys in /platforms/keys/client/
  6. make a product that has 0.00 cost and 1 pound weight
  7. try to buy product, put in your credit card details on checkout review.
  8. it produces error in /admin/reports/dblog - "GnuTLS recv error (-9): A TLS packet with unexpected length was received."

@zkrebs
Copy link
Author

zkrebs commented Feb 1, 2011

http://curl.haxx.se/mail/lib-2010-06/0169.html is this part of it - still hitting my head against the wall on fixing this.

server is using: libcurl 7.19.7
right now

@omega8cc
Copy link
Owner

omega8cc commented Feb 5, 2011

We replaced gnutls with openssl for curl, so it should work without issues now. Note: latest version of Barracuda will force php rebuild on first upgrade to fix the issue. Needs testing however.

@zkrebs
Copy link
Author

zkrebs commented Feb 14, 2011

I did this and now Paypal Website Payment Pro works as expected, thanks so much Grace you're the bomb dot com.

@omega8cc
Copy link
Owner

omega8cc commented Feb 16, 2011

That sounds very nice ;) Thanks!

@omega8cc omega8cc reopened this Apr 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants