Webhooks failing (http 400)
-
All webhook requests to my woocommerce stripe gateway are failing with HTTP status code 400.
The webhook is configured to send the following events.
payment_intent.succeeded
payment_intent.payment_failed
payment_intent.amount_capturable_updated
review.opened
review.closed
source.chargeable
source.canceled
charge.dispute.created
charge.refunded
charge.succeeded
charge.failed
charge.capturedThe webhook secret is configured in the woocommerce settings. Time zone on the stripe account and the wordpress site match (America/Chicago)
Webhook URL is https://ditxse6.org/?wc-api=wc_stripe
-
Hi @dloftis ,
I see that the webhook URL of your site is working fine and returning a status of 200 as expected when I checked via HTTP status checker tool, please see screenshot: https://d.pr/i/rZYyj4
It’s odd that the webhooks are failing when they are sent via Stripe opn your site. For us to understand the site setup better, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.
Do let us know so we can help further.
### WordPress Environment ### WordPress address (URL): https://ditxse6.org Site address (URL): https://ditxse6.org WC Version: 4.9.2 REST API Version: ? 4.9.2 WC Blocks Version: ? 4.0.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.8.3 Log Directory Writable: ? WP Version: 5.6 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: ? ### Server Environment ### Server Info: nginx/1.18.0 PHP Version: 7.4.11 PHP Post Max Size: 32 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.61.1 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.7.12 Max Upload Size: 32 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.9.2 WC Database Prefix: wp_ Total Database Size: 20.61MB Database Data Size: 17.27MB Database Index Size: 3.34MB wp_woocommerce_sessions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_give_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_give_comments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_give_donationmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_give_donormeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_give_donors: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_give_formmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_give_logmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_give_logs: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_give_revenue: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_give_sequential_ordering: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_give_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_section_storage: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_sliders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.11MB + Engine InnoDB wp_options: Data: 3.11MB + Index: 0.09MB + Engine InnoDB wp_postmeta: Data: 0.38MB + Index: 0.30MB + Engine InnoDB wp_posts: Data: 1.50MB + Index: 0.06MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_w3tc_cdn_pathmap: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_w3tc_cdn_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfblockediplog: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Data: 2.34MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Data: 3.52MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 1.02MB + Index: 0.25MB + Engine InnoDB wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Data: 0.03MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Data: 0.28MB + Index: 0.17MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_emails_log: Data: 1.52MB + Index: 0.03MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_indexable: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 56 custom_css: 1 customize_changeset: 9 give_forms: 2 gp_elements: 1 mc4wp-form: 1 ml-slide: 11 ml-slider: 2 nav_menu_item: 30 oembed_cache: 2 page: 30 post: 5 product: 6 product_variation: 9 revision: 197 shop_order: 36 shop_order_refund: 1 tribe_events: 16 tribe_venue: 6 wpcf7_contact_form: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (22) ### Akismet Anti-Spam: by Automattic – 4.1.8 Contact Form 7: by Takayuki Miyoshi – 5.3.2 Cookie Notice: by dFactory – 1.3.2 Disable Comments: by WPDeveloper – 2.0.2 GA Google Analytics: by Jeff Starr – 20201120 Give - Donation Plugin: by GiveWP – 2.9.6 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.15.1 Google XML Sitemaps: by Auctollo – 4.1.1 GP Premium: by Tom Usborne – 1.12.3 Layout Grid: by Automattic – 1.3 Lightweight Social Icons: by Thomas Usborne – 1.1 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.3 Purchase Orders for WooCommerce: by McGregor Media Web Design – 1.7.15 The Events Calendar: by The Events Calendar – 5.3.2 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.47 W3 Total Cache: by BoldGrid – 2.1.0 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.5 WooCommerce Stripe Gateway: by WooCommerce – 4.8.0 WooCommerce: by Automattic – 4.9.2 Wordfence Security: by Wordfence – 7.4.14 WP Mail SMTP Pro: by WPForms – 2.5.3 Smush: by WPMU DEV – 3.8.2 ### Inactive Plugins (0) ### ### Dropin Plugins (3) ### advanced-cache.php: advanced-cache.php db.php: db.php object-cache.php: object-cache.php ### 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) variable (variable) 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: #605 - /shop/ Cart: #597 - /cart/ Checkout: #599 - /checkout/ My account: #603 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: GeneratePress Version: 3.0.2 Author URL: https://tomusborne.com Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Complete: 132 Oldest: 2021-01-18 20:34:47 -0600 Newest: 2021-01-31 08:00:20 -0600 Pending: 2 Oldest: 2021-01-31 20:38:52 -0600 Newest: 2021-02-02 20:23:00 -0600
Hi @dloftis ,
Thanks for sharing the status report. I see that you have Wordfence installed on the site and I suspect it might be preventing communication between Stripe and your site.
I recommend the following:
– Disable Wordfence, then monitor the webhooks
– If webhooks fail even after disabling Wordfence, then I recommend conducting a conflict test as per the steps here: https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4Do let us know how that goes and if you need any further help from us.
Hi @dloftis. We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved. If you still need help with this issue or have any other questions about this plugin, please start a new thread.
- The topic ‘Webhooks failing (http 400)’ is closed to new replies.