Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Location
    Findon, UK
    Posts
    90
    Plugin Contributions
    0

    Default (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/i...er.php?type=ec
    [CANCELURL] => http://purechocolatetruffles.co.uk/i...in&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
    )

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

  4. #4
    Join Date
    Jul 2010
    Location
    Findon, UK
    Posts
    90
    Plugin Contributions
    0

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

    Quote Originally Posted by kobra View Post
    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

  5. #5
    Join Date
    Jul 2010
    Location
    Findon, UK
    Posts
    90
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Replies: 6
    Last Post: 17 Aug 2016, 02:19 PM
  2. v151 Testing TLS with /extras/paypal_tlstest.php
    By Dave224 in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 23 Apr 2016, 12:01 AM
  3. Replies: 4
    Last Post: 25 Aug 2014, 05:15 AM
  4. SSL received a record that exceeded the maximum permissible length
    By dangstrongdd in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 23 Jul 2008, 03:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR