Answers.Body: <p>I am receiving this as well on a WordPress site, so it's unlikely civicrm specific. Debugging inside WordPress' wp_remote_post function has been annoying, so I was happy to see your findings.</p>
  <p>I suspect the clue is this line here in the response:</p>
  <pre><code>&quot;x-encoded-content-encoding&quot; =&gt; array:1 [
            0 =&gt; &quot;NVP&quot;
          ]
  </code></pre>
  <p>After decoding the response, I think cURL usually throws the content-encoding header away, but guzzle maintains the original value in <code>x-encoded-content-encoding</code>.</p>
  <p>NVP is definitely not a valid value for content-encoding.</p>
  <p>Obviously, NVP is legacy, so it will likely be difficult to convince PayPal to admit to this, or make any corrections to stop sending this header.</p>
  <p>I did note that CURLOPT_HTTP_CONTENT_DECODING is a libcurl option that is true by default, but can be set to false to skip response decoding and just pass the content raw. I'm wondering if that might help to get past the error.</p>
  <p>Please let me know if this results in success, as I would be very interested to know for my own challenge!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-09T12:36:18.447Z
Answers.LastActivityDate: 2021-10-09T12:36:18.447Z
Answers.UserDisplayName: andy
Answers.Body: <p>UPDATE: Looking closer at the log maybe it's not the certificate issue. The Oct 1 date made me think it might be. Are you able to see what <code>$nvpreq</code> looks like and then run the command manually to see what the content-encoding header of the response really is? e.g. something like <code>curl -X POST -i -d '..insert contents of $nvpreq here...' https://api-3t.paypal.com/nvp</code></p>
  <hr />
  <p>The error might be misleading. My guess is this is the LetsEncrypt issue that's been coming up since Oct 1. <a href="https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/" rel="nofollow noreferrer">https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/</a></p>
  <p>The php/openssl root certificates file on the server probably needs updating.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-09T11:39:03.850Z
Answers.Text: using curl -X POST... getting following 
  
  `TIMESTAMP=2021%2d10%2d09T11%3a37%3a27Z&CORRELATIONID=91ccf88d441e9&ACK=Failure&VERSION=3&BUILD=55025969&L_ERRORCODE0=10606&L_SHORTMESSAGE0=Transaction%20cannot%20be%20processed%2e&L_LONGMESSAGE0=Transaction%20cannot%20be%20processed%2e&L_SEVERITYCODE0=Error&AMT=1%2e00&CURRENCYCODE=USD`
  
  Thats ok because i used dummy card on live processor.
Answers.UserDisplayName: Sunil Pawar
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-08T19:12:49.397Z
Answers.LastActivityDate: 2021-10-09T04:29:08.910Z
Answers.LastEditDate: 2021-10-09T04:29:08.910Z
Answers.UserDisplayName: Demerit
Body: <p>From 1st of October ,we start getting following error, before that it was working fine...</p>
  <p>We are on Drupal 9, CiviCRM 5.33.5 version.</p>
  <p>Issue is with Paypal Pro.</p>
  <pre><code>Oct 04 18:55:19  [error]
  $Fatal Error Details = array:3 [
    &quot;message&quot; =&gt; &quot;cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)&quot;
    &quot;code&quot; =&gt; null
    &quot;exception&quot; =&gt; GuzzleHttp\Exception\RequestException {#1903
      -request: GuzzleHttp\Psr7\Request {#1900
        -method: &quot;POST&quot;
        -requestTarget: null
        -uri: GuzzleHttp\Psr7\Uri {#1892
          -scheme: &quot;https&quot;
          -userInfo: &quot;&quot;
          -host: &quot;api-3t.paypal.com&quot;
          -port: null
          -path: &quot;/nvp&quot;
          -query: &quot;&quot;
          -fragment: &quot;&quot;
        }
        -headers: array:3 [
          &quot;Content-Length&quot; =&gt; array:1 [
            0 =&gt; &quot;570&quot;
          ]
          &quot;User-Agent&quot; =&gt; array:1 [
            0 =&gt; &quot;GuzzleHttp/6.5.5 curl/7.58.0 PHP/7.3.31-1+ubuntu18.04.1+deb.sury.org+1&quot;
          ]
          &quot;Host&quot; =&gt; array:1 [
            0 =&gt; &quot;api-3t.paypal.com&quot;
          ]
        ]
        -headerNames: array:3 [
          &quot;content-length&quot; =&gt; &quot;Content-Length&quot;
          &quot;user-agent&quot; =&gt; &quot;User-Agent&quot;
          &quot;host&quot; =&gt; &quot;Host&quot;
        ]
        -protocol: &quot;1.1&quot;
        -stream: GuzzleHttp\Psr7\Stream {#1894
          -stream: stream resource {@162
            wrapper_type: &quot;PHP&quot;
            stream_type: &quot;TEMP&quot;
            mode: &quot;w+b&quot;
            unread_bytes: 0
            seekable: true
            uri: &quot;php://temp&quot;
            options: []
          }
          -size: 570
          -seekable: true
          -readable: true
          -writable: true
          -uri: &quot;php://temp&quot;
          -customMetadata: []
        }
      }
      -response: GuzzleHttp\Psr7\Response {#1904
        -reasonPhrase: &quot;OK&quot;
        -statusCode: 200
        -headers: array:9 [
          &quot;Connection&quot; =&gt; array:1 [
            0 =&gt; &quot;keep-alive&quot;
          ]
          &quot;Date&quot; =&gt; array:1 [
            0 =&gt; &quot;Mon, 04 Oct 2021 23:55:19 GMT&quot;
          ]
          &quot;Cache-Control&quot; =&gt; array:1 [
            0 =&gt; &quot;max-age=0, no-cache, no-store, must-revalidate&quot;
          ]
          &quot;Paypal-Debug-Id&quot; =&gt; array:1 [
            0 =&gt; &quot;2f618f7278897&quot;
          ]
          &quot;X-Paypal-Operation-Name&quot; =&gt; array:1 [
            0 =&gt; &quot;DoDirectPayment&quot;
          ]
          &quot;HTTP_X_PP_AZ_LOCATOR&quot; =&gt; array:1 [
            0 =&gt; &quot;ccg13.slc&quot;
          ]
          &quot;Strict-Transport-Security&quot; =&gt; array:1 [
            0 =&gt; &quot;max-age=31536000; includeSubDomains&quot;
          ]
          &quot;x-encoded-content-encoding&quot; =&gt; array:1 [
            0 =&gt; &quot;NVP&quot;
          ]
          &quot;x-encoded-content-length&quot; =&gt; array:1 [
            0 =&gt; &quot;187&quot;
          ]
        ]
        -headerNames: array:9 [
          &quot;connection&quot; =&gt; &quot;Connection&quot;
          &quot;date&quot; =&gt; &quot;Date&quot;
          &quot;cache-control&quot; =&gt; &quot;Cache-Control&quot;
          &quot;paypal-debug-id&quot; =&gt; &quot;Paypal-Debug-Id&quot;
          &quot;x-paypal-operation-name&quot; =&gt; &quot;X-Paypal-Operation-Name&quot;
          &quot;http_x_pp_az_locator&quot; =&gt; &quot;HTTP_X_PP_AZ_LOCATOR&quot;
          &quot;strict-transport-security&quot; =&gt; &quot;Strict-Transport-Security&quot;
          &quot;x-encoded-content-encoding&quot; =&gt; &quot;x-encoded-content-encoding&quot;
          &quot;x-encoded-content-length&quot; =&gt; &quot;x-encoded-content-length&quot;
        ]
        -protocol: &quot;1.1&quot;
        -stream: GuzzleHttp\Psr7\Stream {#1902
          -stream: stream resource {@164
            wrapper_type: &quot;PHP&quot;
            stream_type: &quot;TEMP&quot;
            mode: &quot;w+b&quot;
            unread_bytes: 0
            seekable: true
            uri: &quot;php://temp&quot;
            options: []
          }
          -size: 0
          -seekable: true
          -readable: true
          -writable: true
          -uri: &quot;php://temp&quot;
          -customMetadata: []
        }
      }
      -handlerContext: array:34 [
        &quot;errno&quot; =&gt; 61
        &quot;error&quot; =&gt; &quot;Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.&quot;
        &quot;appconnect_time&quot; =&gt; 0.110807
        &quot;url&quot; =&gt; &quot;https://api-3t.paypal.com/nvp&quot;
        &quot;content_type&quot; =&gt; null
        &quot;http_code&quot; =&gt; 200
        &quot;header_size&quot; =&gt; 358
        &quot;request_size&quot; =&gt; 722
        &quot;filetime&quot; =&gt; -1
        &quot;ssl_verify_result&quot; =&gt; 0
        &quot;redirect_count&quot; =&gt; 0
        &quot;total_time&quot; =&gt; 2.862486
        &quot;namelookup_time&quot; =&gt; 0.004156
        &quot;connect_time&quot; =&gt; 0.037036
        &quot;pretransfer_time&quot; =&gt; 0.110853
        &quot;size_upload&quot; =&gt; 570.0
        &quot;size_download&quot; =&gt; 187.0
        &quot;speed_download&quot; =&gt; 65.0
        &quot;speed_upload&quot; =&gt; 199.0
        &quot;download_content_length&quot; =&gt; 187.0
        &quot;upload_content_length&quot; =&gt; 570.0
        &quot;starttransfer_time&quot; =&gt; 2.862108
        &quot;redirect_time&quot; =&gt; 0.0
        &quot;redirect_url&quot; =&gt; &quot;&quot;
        &quot;primary_ip&quot; =&gt; &quot;173.0.88.69&quot;
        &quot;certinfo&quot; =&gt; []
        &quot;primary_port&quot; =&gt; 443
        &quot;local_ip&quot; =&gt; &quot;198.58.111.95&quot;
        &quot;local_port&quot; =&gt; 36104
        &quot;http_version&quot; =&gt; 2
        &quot;protocol&quot; =&gt; 2
        &quot;ssl_verifyresult&quot; =&gt; 0
        &quot;scheme&quot; =&gt; &quot;HTTPS&quot;
        &quot;curl_version&quot; =&gt; &quot;7.58.0&quot;
      ]
      #message: &quot;cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)&quot;
      #code: 200
      #file: &quot;/var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php&quot;
      #line: 201
      trace: {
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:66 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Middleware.php:29 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:70 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Middleware.php:59 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:351 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:162 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:182 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:95 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php:1051 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php:562 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment.php:1374 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php:493 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Contribute/BAO/Contribution/Utils.php:173 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Contribute/Form/Contribution/Confirm.php:2307 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Contribute/Form/Contribution/Confirm.php:688 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Form.php:513 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/StateMachine.php:144 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/QuickForm/Action/Next.php:43 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/packages/HTML/QuickForm/Controller.php:203 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/packages/HTML/QuickForm/Page.php:103 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Controller.php:347 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php:312 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php:68 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php:36 { …}
        /var/www/web/domain.org/web/modules/contrib/civicrm/src/Civicrm.php:88 {
          Drupal\civicrm\Civicrm-&gt;invoke($args)
          › ob_start();
          › $content = \CRM_Core_Invoke::invoke($args);
          › $output = ob_get_clean();
          arguments: {
            $args: array:3 [ …3]
          }
        }
        /var/www/web/domain.org/web/modules/contrib/civicrm/src/Controller/CivicrmController.php:80 { …}
        Drupal\civicrm\Controller\CivicrmController-&gt;main() {}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/Render/Renderer.php:573 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:124 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:97 { …}
        /var/www/web/domain.org/vendor/symfony/http-kernel/HttpKernel.php:158 { …}
        /var/www/web/domain.org/vendor/symfony/http-kernel/HttpKernel.php:80 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/Session.php:57 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:47 { …}
        /var/www/web/domain.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php:106 { …}
        /var/www/web/domain.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php:85 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php:47 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php:52 { …}
        /var/www/web/domain.org/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/DrupalKernel.php:706 { …}
        /var/www/web/domain.org/web/index.php:19 { …}
      }
    }
  ]
  </code></pre>
  <p>Anybody have idea about this ?</p>
  <p>Here is code block which initiated the above call.
  <code>vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php</code> :</p>
  <pre><code>$response = (string) $this-&gt;getGuzzleClient()-&gt;post($url, [
    'body' =&gt; $nvpreq,
    'curl' =&gt; [
      CURLOPT_RETURNTRANSFER =&gt; TRUE,
      CURLOPT_SSL_VERIFYPEER =&gt; Civi::settings()-&gt;get('verifySSL'),
    ],
  ])-&gt;getBody();
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-08T17:23:13.310Z
Comments.Text: We are on Drupal 7 with CiviCRM 5.41.0 and getting the same issue.
Comments.UserDisplayName: Logan Bear
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-08T20:10:17.367Z
Comments.Text: Same issue on CiviCRM 5.41.1 and CiviCRM 5.39.0 (both websites running latest release of Drupal 7)
Comments.UserDisplayName: mark-rodgers
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-13T16:41:43.263Z
Comments.Text: We were getting the same issue for a few days... really inconsistent, most payments would go through, but some would get this error. The last time we got this error was Oct 8 9:43am (pacific). Have not seen it since.
Comments.UserDisplayName: Jose Torres
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-14T16:04:43.083Z
Comments.Text: @JoseTorres, same case with us, it was started on 1st of oct and then may be ended on Oct 8-9. but it stopped.
Comments.UserDisplayName: Sunil Pawar
Tags: <payment-processor>
Title: cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings
ThreadText: # cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings
  
  (Asked by: username_0 on 2021-10-08)
  
  From 1st of October ,we start getting following error, before that it was working fine...
  
  We are on Drupal 9, CiviCRM 5.33.5 version.
  
  Issue is with Paypal Pro.
  
  ```
  Oct 04 18:55:19  [error]
  $Fatal Error Details = array:3 [
    "message" => "cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
    "code" => null
    "exception" => GuzzleHttp\Exception\RequestException {#1903
      -request: GuzzleHttp\Psr7\Request {#1900
        -method: "POST"
        -requestTarget: null
        -uri: GuzzleHttp\Psr7\Uri {#1892
          -scheme: "https"
          -userInfo: ""
          -host: "api-3t.paypal.com"
          -port: null
          -path: "/nvp"
          -query: ""
          -fragment: ""
        }
        -headers: array:3 [
          "Content-Length" => array:1 [
            0 => "570"
          ]
          "User-Agent" => array:1 [
            0 => "GuzzleHttp/6.5.5 curl/7.58.0 PHP/7.3.31-1+ubuntu18.04.1+deb.sury.org+1"
          ]
          "Host" => array:1 [
            0 => "api-3t.paypal.com"
          ]
        ]
        -headerNames: array:3 [
          "content-length" => "Content-Length"
          "user-agent" => "User-Agent"
          "host" => "Host"
        ]
        -protocol: "1.1"
        -stream: GuzzleHttp\Psr7\Stream {#1894
          -stream: stream resource {@162
            wrapper_type: "PHP"
            stream_type: "TEMP"
            mode: "w+b"
            unread_bytes: 0
            seekable: true
            uri: "php://temp"
            options: []
          }
          -size: 570
          -seekable: true
          -readable: true
          -writable: true
          -uri: "php://temp"
          -customMetadata: []
        }
      }
      -response: GuzzleHttp\Psr7\Response {#1904
        -reasonPhrase: "OK"
        -statusCode: 200
        -headers: array:9 [
          "Connection" => array:1 [
            0 => "keep-alive"
          ]
          "Date" => array:1 [
            0 => "Mon, 04 Oct 2021 23:55:19 GMT"
          ]
          "Cache-Control" => array:1 [
            0 => "max-age=0, no-cache, no-store, must-revalidate"
          ]
          "Paypal-Debug-Id" => array:1 [
            0 => "2f618f7278897"
          ]
          "X-Paypal-Operation-Name" => array:1 [
            0 => "DoDirectPayment"
          ]
          "HTTP_X_PP_AZ_LOCATOR" => array:1 [
            0 => "ccg13.slc"
          ]
          "Strict-Transport-Security" => array:1 [
            0 => "max-age=31536000; includeSubDomains"
          ]
          "x-encoded-content-encoding" => array:1 [
            0 => "NVP"
          ]
          "x-encoded-content-length" => array:1 [
            0 => "187"
          ]
        ]
        -headerNames: array:9 [
          "connection" => "Connection"
          "date" => "Date"
          "cache-control" => "Cache-Control"
          "paypal-debug-id" => "Paypal-Debug-Id"
          "x-paypal-operation-name" => "X-Paypal-Operation-Name"
          "http_x_pp_az_locator" => "HTTP_X_PP_AZ_LOCATOR"
          "strict-transport-security" => "Strict-Transport-Security"
          "x-encoded-content-encoding" => "x-encoded-content-encoding"
          "x-encoded-content-length" => "x-encoded-content-length"
        ]
        -protocol: "1.1"
        -stream: GuzzleHttp\Psr7\Stream {#1902
          -stream: stream resource {@164
            wrapper_type: "PHP"
            stream_type: "TEMP"
            mode: "w+b"
            unread_bytes: 0
            seekable: true
            uri: "php://temp"
            options: []
          }
          -size: 0
          -seekable: true
          -readable: true
          -writable: true
          -uri: "php://temp"
          -customMetadata: []
        }
      }
      -handlerContext: array:34 [
        "errno" => 61
        "error" => "Unrecognized content encoding type. libcurl understands deflate, gzip content encodings."
        "appconnect_time" => 0.110807
        "url" => "https://api-3t.paypal.com/nvp"
        "content_type" => null
        "http_code" => 200
        "header_size" => 358
        "request_size" => 722
        "filetime" => -1
        "ssl_verify_result" => 0
        "redirect_count" => 0
        "total_time" => 2.862486
        "namelookup_time" => 0.004156
        "connect_time" => 0.037036
        "pretransfer_time" => 0.110853
        "size_upload" => 570.0
        "size_download" => 187.0
        "speed_download" => 65.0
        "speed_upload" => 199.0
        "download_content_length" => 187.0
        "upload_content_length" => 570.0
        "starttransfer_time" => 2.862108
        "redirect_time" => 0.0
        "redirect_url" => ""
        "primary_ip" => "173.0.88.69"
        "certinfo" => []
        "primary_port" => 443
        "local_ip" => "198.58.111.95"
        "local_port" => 36104
        "http_version" => 2
        "protocol" => 2
        "ssl_verifyresult" => 0
        "scheme" => "HTTPS"
        "curl_version" => "7.58.0"
      ]
      #message: "cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
      #code: 200
      #file: "/var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php"
      #line: 201
      trace: {
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:66 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Middleware.php:29 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:70 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Middleware.php:59 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:351 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:162 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:182 { …}
        /var/www/web/domain.org/vendor/guzzlehttp/guzzle/src/Client.php:95 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php:1051 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php:562 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment.php:1374 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php:493 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Contribute/BAO/Contribution/Utils.php:173 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Contribute/Form/Contribution/Confirm.php:2307 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Contribute/Form/Contribution/Confirm.php:688 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Form.php:513 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/StateMachine.php:144 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/QuickForm/Action/Next.php:43 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/packages/HTML/QuickForm/Controller.php:203 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/packages/HTML/QuickForm/Page.php:103 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Controller.php:347 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php:312 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php:68 { …}
        /var/www/web/domain.org/vendor/civicrm/civicrm-core/CRM/Core/Invoke.php:36 { …}
        /var/www/web/domain.org/web/modules/contrib/civicrm/src/Civicrm.php:88 {
          Drupal\civicrm\Civicrm->invoke($args)
          › ob_start();
          › $content = \CRM_Core_Invoke::invoke($args);
          › $output = ob_get_clean();
          arguments: {
            $args: array:3 [ …3]
          }
        }
        /var/www/web/domain.org/web/modules/contrib/civicrm/src/Controller/CivicrmController.php:80 { …}
        Drupal\civicrm\Controller\CivicrmController->main() {}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/Render/Renderer.php:573 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:124 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:97 { …}
        /var/www/web/domain.org/vendor/symfony/http-kernel/HttpKernel.php:158 { …}
        /var/www/web/domain.org/vendor/symfony/http-kernel/HttpKernel.php:80 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/Session.php:57 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:47 { …}
        /var/www/web/domain.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php:106 { …}
        /var/www/web/domain.org/web/core/modules/page_cache/src/StackMiddleware/PageCache.php:85 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php:47 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php:52 { …}
        /var/www/web/domain.org/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 { …}
        /var/www/web/domain.org/web/core/lib/Drupal/Core/DrupalKernel.php:706 { …}
        /var/www/web/domain.org/web/index.php:19 { …}
      }
    }
  ]
  
  ```
  
  Anybody have idea about this ?
  
  Here is code block which initiated the above call.
  `vendor/civicrm/civicrm-core/CRM/Core/Payment/PayPalImpl.php` :
  
  ```
  $response = (string) $this->getGuzzleClient()->post($url, [
    'body' => $nvpreq,
    'curl' => [
      CURLOPT_RETURNTRANSFER => TRUE,
      CURLOPT_SSL_VERIFYPEER => Civi::settings()->get('verifySSL'),
    ],
  ])->getBody();
  
  ```
  
  **Tags:** payment-processor
  
  > **Comments:**
  > **username_1**: We are on Drupal 7 with CiviCRM 5.41.0 and getting the same issue.  
  > **username_2**: Same issue on CiviCRM 5.41.1 and CiviCRM 5.39.0 (both websites running latest release of Drupal 7)  
  > **username_3**: We were getting the same issue for a few days... really inconsistent, most payments would go through, but some would get this error. The last time we got this error was Oct 8 9:43am (pacific). Have not seen it since.  
  > **username_0**: @username_3, same case with us, it was started on 1st of oct and then may be ended on Oct 8-9. but it stopped.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_4 on 2021-10-09. Score: 1
  
  I am receiving this as well on a WordPress site, so it's unlikely civicrm specific. Debugging inside WordPress' wp\_remote\_post function has been annoying, so I was happy to see your findings.
  
  I suspect the clue is this line here in the response:
  
  ```
  "x-encoded-content-encoding" => array:1 [
            0 => "NVP"
          ]
  
  ```
  
  After decoding the response, I think cURL usually throws the content-encoding header away, but guzzle maintains the original value in `x-encoded-content-encoding`.
  
  NVP is definitely not a valid value for content-encoding.
  
  Obviously, NVP is legacy, so it will likely be difficult to convince PayPal to admit to this, or make any corrections to stop sending this header.
  
  I did note that CURLOPT\_HTTP\_CONTENT\_DECODING is a libcurl option that is true by default, but can be set to false to skip response decoding and just pass the content raw. I'm wondering if that might help to get past the error.
  
  Please let me know if this results in success, as I would be very interested to know for my own challenge!
  
  
  ---
  
  ### Answer by username_5 on 2021-10-08. Score: 0
  
  UPDATE: Looking closer at the log maybe it's not the certificate issue. The Oct 1 date made me think it might be. Are you able to see what `$nvpreq` looks like and then run the command manually to see what the content-encoding header of the response really is? e.g. something like `curl -X POST -i -d '..insert contents of $nvpreq here...' https://api-3t.paypal.com/nvp`
  
  ---
  
  The error might be misleading. My guess is this is the LetsEncrypt issue that's been coming up since Oct 1. <https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/>
  
  The php/openssl root certificates file on the server probably needs updating.
  
  > **Comments:**
  > **username_0**: using curl -X POST... getting following   `TIMESTAMP=2021%2d10%2d09T11%3a37%3a27Z&CORRELATIONID=91ccf88d441e9&ACK=Failure&VERSION=3&BUILD=55025969&L_ERRORCODE0=10606&L_SHORTMESSAGE0=Transaction%20cannot%20be%20processed%2e&L_LONGMESSAGE0=Transaction%20cannot%20be%20processed%2e&L_SEVERITYCODE0=Error&AMT=1%2e00&CURRENCYCODE=USD`  Thats ok because i used dummy card on live processor.  
  
  ---
  
  