Problem Connecting to Stripe API Endpoint Error
-
We are getting an intermittent issue at checkout that says “There was a problem connecting to the Stripe API Endpoint.” It doesn’t always happen though and we can’t figure out what is triggering it. The website mostly sells subscriptions so generally only for the first payment the user goes through the actual checkout. We have logs enabled and are getting a “cURL error 35: Encountered end of file” error that we believe is always happening for these failed checkouts.
I think our server is up to date in terms of php and ssl so that does not seem to be the issue. Maybe we are missing something there though.
The page I need help with: [log in to see the link]
-
### WordPress Environment ### WordPress address (URL): https://discountlots.com Site address (URL): https://discountlots.com WC Version: 4.3.0 REST API Version: ✔ 1.0.10 WC Blocks Version: ✔ 2.7.1 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.3.0 Log Directory Writable: ✔ WP Version: 5.4.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.20 PHP Post Max Size: 16 MB PHP Time Limit: 3600 PHP Max Input Vars: 1000 cURL Version: 7.29.0 NSS/3.44 SUHOSIN Installed: – MySQL Version: 5.5.65-MariaDB Max Upload Size: 10 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 4.3.0 WC Database Prefix: dl_ Total Database Size: 237.47MB Database Data Size: 159.50MB Database Index Size: 77.97MB dl_woocommerce_sessions: Data: 3.02MB + Index: 0.08MB + Engine InnoDB dl_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB dl_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB dl_woocommerce_order_itemmeta: Data: 0.36MB + Index: 0.38MB + Engine InnoDB dl_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB dl_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_woocommerce_payment_tokenmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB dl_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_actionscheduler_actions: Data: 26.09MB + Index: 28.14MB + Engine InnoDB dl_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_actionscheduler_logs: Data: 24.08MB + Index: 19.05MB + Engine InnoDB dl_cartflows_ca_cart_abandonment: Data: 0.16MB + Index: 0.02MB + Engine InnoDB dl_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_comments: Data: 1.52MB + Index: 0.55MB + Engine InnoDB dl_followup_coupons: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_followup_coupon_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB dl_followup_customers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB dl_followup_customer_carts: Data: 0.09MB + Index: 0.03MB + Engine InnoDB dl_followup_customer_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_followup_customer_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_followup_email_excludes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB dl_followup_email_logs: Data: 0.06MB + Index: 0.05MB + Engine InnoDB dl_followup_email_orders: Data: 1.09MB + Index: 0.09MB + Engine InnoDB dl_followup_email_tracking: Data: 0.05MB + Index: 0.08MB + Engine InnoDB dl_followup_followup_history: Data: 0.08MB + Index: 0.05MB + Engine InnoDB dl_followup_order_categories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_followup_order_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB dl_followup_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_followup_subscribers_to_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_followup_subscriber_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_gf_entry: Data: 1.52MB + Index: 0.25MB + Engine InnoDB dl_gf_entry_meta: Data: 3.52MB + Index: 5.55MB + Engine InnoDB dl_gf_entry_notes: Data: 1.52MB + Index: 0.22MB + Engine InnoDB dl_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_gf_form_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB dl_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_gf_form_view: Data: 0.08MB + Index: 0.06MB + Engine InnoDB dl_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_options: Data: 3.13MB + Index: 0.09MB + Engine InnoDB dl_postmeta: Data: 83.36MB + Index: 18.78MB + Engine InnoDB dl_posts: Data: 6.50MB + Index: 1.41MB + Engine InnoDB dl_rg_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_rg_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_rg_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_rg_incomplete_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_rg_lead: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_rg_lead_detail: Data: 0.02MB + Index: 0.06MB + Engine InnoDB dl_rg_lead_detail_long: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_rg_lead_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_rg_lead_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_rg_zapier: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_search_filter_cache: Data: 0.19MB + Index: 0.22MB + Engine InnoDB dl_search_filter_term_results: Data: 0.02MB + Index: 0.05MB + Engine InnoDB dl_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB dl_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_usermeta: Data: 0.44MB + Index: 0.34MB + Engine InnoDB dl_users: Data: 0.05MB + Index: 0.05MB + Engine InnoDB dl_wcs_payment_retries: Data: 0.06MB + Index: 0.02MB + Engine InnoDB dl_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB dl_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB dl_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB dl_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_wc_product_meta_lookup: Data: 0.17MB + Index: 0.39MB + Engine InnoDB dl_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB dl_wfconfig: Data: 0.09MB + Index: 0.00MB + Engine InnoDB dl_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB dl_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB dl_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB dl_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB dl_wfstatus: Data: 0.02MB + Index: 0.03MB + Engine InnoDB dl_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_category_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_circles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB dl_wpgmza_datasets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_live_tracking_devices: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_maps_has_custom_fields_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_markers_has_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_markers_has_custom_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_polygon: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_polylines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB dl_wpgmza_rectangles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 49 acf-field-group: 5 attachment: 3315 customize_changeset: 6 custom_css: 1 fl-builder-template: 12 fl-theme-layout: 6 follow_up_email: 1 nav_menu_item: 6 page: 25 post: 2 product: 324 product_variation: 1280 property: 323 revision: 1706 search-filter-widget: 3 shop_coupon: 4 shop_order: 298 shop_order_refund: 15 shop_subscription: 163 woo_discount: 2 woo_discount_cart: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (32) ### BackupBuddy: by iThemes – 8.6.0.0 Gravity Forms: by Gravity Forms – 2.4.19 A Random Number: by Macardam – 1.1 Advanced Custom Fields PRO: by Elliot Condon – 5.8.12 Akismet Anti-Spam: by Automattic – 4.1.6 Beaver Builder Plugin (Pro Version): by The Beaver Builder Team – 2.3.2.6 Beaver Themer: by The Beaver Builder Team – 1.3.2.1 Custom Post Type UI: by WebDevStudios – 1.7.4 Customizer Export/Import: by The Beaver Builder Team – 0.9.1 Gmail SMTP: by naa986 – 1.1.9 Gravity Forms Mailchimp Add-On: by Gravity Forms – 4.7 Gravity Forms Zapier Add-on: by Gravity Forms – 3.3 Intercom: by Intercom – 2.6.4 iThemes Sync: by iThemes – 2.1.6 Search & Filter - Beaver Builder Extension: by Code Amp – 1.0.0 Search & Filter Pro: by Code Amp – 2.5.1 Show modified Date in admin lists: by Apasionados.es – 1.1 Simple 301 Redirects - Addon - Bulk CSV Uploader: by Webcraftic Ash Durham – 1.2.5 Simple 301 Redirects: by Scott Nellé – 1.07 User Switching: by John Blackbourn & contributors – 1.5.5 WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.7 – Installed version not tested with active version of WooCommerce 4.3.0 WooCommerce Checkout Field Editor: by WooCommerce – 1.5.35 – Installed version not tested with active version of WooCommerce 4.3.0 Follow-Up Emails: by WooCommerce – 4.9.3 – Installed version not tested with active version of WooCommerce 4.3.0 WooCommerce Stripe Gateway: by WooCommerce – 4.5.0 – Installed version not tested with active version of WooCommerce 4.3.0 WooCommerce Subscriptions: by WooCommerce – 3.0.5 – Installed version not tested with active version of WooCommerce 4.3.0 WooCommerce: by Automattic – 4.3.0 WordPress Importer: by wordpressdotorg – 0.7 WP Google Maps - Discount Lots Customisation: by – 1.0 WP Google Maps - Gold Add-on: by WP Google Maps – 4.25 WP Google Maps - Pro Add-on: by WP Google Maps – 8.0.33 WP Google Maps: by WP Google Maps – 8.0.25 Smush: by WPMU DEV – 3.6.3 ### Inactive Plugins (4) ### Advanced Custom Fields: by Elliot Condon – 5.8.12 Change wp-admin login: by Nuno Morais Sarmento – 1.0.0 W3 Total Cache: by BoldGrid – 0.14.2 WP phpMyAdmin: by Puvox.software – 3.02 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔ ### WC Pages ### Shop base: #14776 - /shop/ Cart: #14777 - /cart/ Checkout: #14778 - /checkout/ My account: #14779 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Beaver Builder Child Theme Version: 1.0 Author URL: http://www.fastlinemedia.com Child Theme: ✔ Parent Theme Name: Beaver Builder Theme Parent Theme Version: 1.7.6.3 Parent Theme Author URL: http://www.wpbeaverbuilder.com/?utm_medium=bb-pro&utm_source=bb-theme&utm_campaign=themes-admin-page WooCommerce Support: ✔ ### Templates ### Overrides: – ### Subscriptions ### WCS_DEBUG: ✔ No Subscriptions Mode: ✔ Live Subscriptions Live URL: https://discountlots.com Subscription Statuses: wc-active: 104 wc-pending-cancel: 1 wc-on-hold: 24 wc-cancelled: 34 WooCommerce Account Connected: ✔ Yes Active Product Key: ✔ Yes Custom Retry Rules: ✔ No Custom Retry Rule Class: ✔ No Custom Raw Retry Rule: ✔ No Custom Retry Rule: ✔ No Retries Migration Status: ✔ Completed Report Cache Enabled: ✔ Yes Cache Update Failures: ✔ 0 failure ### Store Setup ### Country / State: United States (US) — Illinois ### Subscriptions by Payment Gateway ### Stripe: wc-active: 104 wc-cancelled: 34 wc-on-hold: 24 wc-pending-cancel: 1 ### Payment Gateway Support ### Stripe: products refunds tokenization add_payment_method subscriptions subscription_cancellation subscription_suspension subscription_reactivation subscription_amount_changes subscription_date_changes subscription_payment_method_change subscription_payment_method_change_customer subscription_payment_method_change_admin multiple_subscriptions pre-orders ### Action Scheduler ### Canceled: 2 Oldest: 2020-06-28 23:12:33 -0500 Newest: 2020-07-09 23:07:10 -0500 Complete: 93,413 Oldest: 2020-06-16 10:12:15 -0500 Newest: 2020-07-17 08:21:30 -0500 Failed: 2 Oldest: 2020-07-08 07:25:44 -0500 Newest: 2020-07-08 07:25:44 -0500 Pending: 345 Oldest: 2020-07-17 09:56:44 -0500 Newest: 2032-08-09 22:44:42 -0500Oh I’m thinking maybe it’s just that the Woocommerce is using the wrong version of the Stripe API.
Hi there,
I have never seen this error before. Does this happen only recently? Is it possible that this happened after a plugin update was made on your site?
Could you please copy/ paste the content of the error, including the stack trace, this will help us investigate into what could be causing it.
Hi,
We don’t know exactly when it started happening – this is a client’s site and their customers often have card issues as well so it has been hard to pinpoint exactly when the issue is a card issue and when it is an issue with the checkout process.
Here is a screenshot of checkout when the error happens – https://ibb.co/2YgqrRj
Below is the error log from the same time:
2020-07-16T17:11:02+00:00 DEBUG ====Stripe Version: 4.5.0==== ====Start Log==== customers/xxxxxxxxx request: Array ( [email] => [email protected] [description] => Name: xxxx, Username: xxxx [metadata] => Array ( ) ) ====End Log==== 2020-07-16T17:11:03+00:00 DEBUG ====Stripe Version: 4.5.0==== ====Start Log==== Error Response: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 35: Encountered end of file ) ) [error_data] => Array ( ) ) Failed request: Array ( [api] => customers/xxxxxxxx [request] => Array ( [email] => [email protected] [description] => Name: xxxx, Username: xxxxx [metadata] => Array ( ) ) [idempotency_key] => ) ====End Log==== 2020-07-16T17:11:03+00:00 DEBUG ====Stripe Version: 4.5.0==== ====Start Log==== Error: WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => cURL error 35: Encountered end of file ) ) [error_data] => Array ( ) )====End Log====
-
This reply was modified 5 years, 10 months ago by
Steven Stern (sterndata).
Hi there @mgowell
Thanks for the detail, we’ve redacted much of the personal information – but the log is useful showing again the
cURL error 35: Encountered end of fileerror.In short, this is related to the SSL certificate your site uses and/or server modules.
My recommendation would be to speak to your webhost and confirm everything is up to date. This error mostly presents when you aren’t using TLS 1.2 – if you don’t know what that is, don’t worry, your host will do.
Thanks,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
-
This reply was modified 5 years, 10 months ago by
The topic ‘Problem Connecting to Stripe API Endpoint Error’ is closed to new replies.