Forums / PayPal Express Checkout support / (52) GnuTLS recv error (-9): A TLS packet with unexpected length was received.

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

Started by purechocolatetruffle on 15 Feb 2011, 9:49 AM · Views: 3,838

Results 1 to 5 of 5
15 Feb 2011, 9:49 AM
#1
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

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

Hi,

I've sat up my PayPal Express Checkout and it has worked as it should for months. But suddenly, my customers can't pay this way but get an error message and I'm sent 15 mails with various messages.
However, I think this is the one where some of you may can see what's wrong.

I have contacted Paypal but their reply is, that this is a Zen Cart problem.

Can you help ? Any advice is most welcome.

many thanks in advance.

Regards,

Kim Bang-Sorensen

PayPal Debug log - SetExpressCheckout
2011-02-15 03:31:53

(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 45
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart - WPP-NVP
[4] => X-VPS-VIT-Integration-Version: 1.3.8a
)

Request Parameters: {SetExpressCheckout}
Array
(
[LOCALECODE] => GB
[PAYMENTACTION] => Sale
[AMT] => 5.75
[RETURNURL] => http://purechocolatetruffles.co.uk/ipn_main_handler.php?type=ec
[CANCELURL] => http://purechocolatetruffles.co.uk/index.php?main_page=login&ec_cancel=1
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => GBP
[USER] => kimbangsorensen_api1.btinternet.com
[PWD] => ****************
[VERSION] => 3.2
[SIGNATURE] => ****************************************************LXM9
)

Response:
Array
(
[] =>
[CURL_ERRORS] => (52) GnuTLS recv error (-9): A TLS packet with unexpected length was received.
)

(52) GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Array
(
[url] => https://api-3t.paypal.com/nvp
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 710
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.688919
[namelookup_time] => 0.000934
[connect_time] => 0.094244
[pretransfer_time] => 0.594426
[size_upload] => 452
[size_download] => 0
[speed_download] => 0
[speed_upload] => 656
[download_content_length] => 0
[upload_content_length] => 0
[starttransfer_time] => 0.688894
[redirect_time] => 0
)

15 Feb 2011, 10:06 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Do you/are you using a SSL certificate?

The error is a curl TLS error (Transcript Layer Security)

I did not think that one needed a SSL for PayPal but have not kept up on requirements

Might be that curl is not present but that would be something your host would have altered

Zen-Venom Get Bitten

15 Feb 2011, 10:06 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Feb 2011, 3:11 PM
#4
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

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

kobra:

Do you/are you using a SSL certificate?

The error is a curl TLS error (Transcript Layer Security)

I did not think that one needed a SSL for PayPal but have not kept up on requirements

Might be that curl is not present but that would be something your host would have altered

No, I'm not using a SSL certificate (not to my knowledge) so I'll ask my host what's going on. Thank you for your reply.

Kim

15 Feb 2011, 3:32 PM
#5
Join Date:
Jul 2010
Location:
Findon, UK
Posts:
90
Plugin Contributions:
0

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

Weird, PayPal Express Checkout suddenly works again - after three customers had complained that you couldn't pay in this way ..... and I haven't changed a thing.
Cross fingers, PayPal Express Checkout will continue to work ... as it has done for months until recently.
Nevertheless, many thanks for your help.

Kim