Support » Plugin: WooCommerce Stripe Payment Gateway » 301 webhook delivery error

  • Resolved ymkthecreative

    (@ymkthecreative)


    I recently got an email from stripe about attempts to deliver to my webhook is failing. I have went through some threads on here and I am still quite not sure where to begin to resolve the issue. It is quite frustrating because no one seems to have stated a clear way to resolve the issue, so I am hoping to receive some additional help. I contacted stripe about the issue and will post the suggested information below. I have no idea how to run “tests” but I recently started a debug log yesterday in the settings of woocoommerce. I recently updated wordpress (about 3 days ago before being aware of the issue) and a few other plugins and looked around but I dont see where the could be any conflicts. I had no failures in my log in woocommerce (as advised to check for in other threads). Payments have been working fine so far so Im not sure what could be the issue now. Also one thread mentioned to check that the timezones are correct and i checked stripe it is correct and woo commerce store timezone is correct both are AKT time zone. Thank you in advance for your help.

    Email I first received from stripe notifying me of webhook issue:
    Hi there,

    We’re contacting you because we’re still having trouble delivering data to a webhook endpoint associated with your FDEUniversal account in live mode. Webhooks are used to notify your server about events that happen in your Stripe account, such as a payout completing or an invoice being created. The failing webhook endpoint is http://themagnificenttycoon.com/?wc-api=wc_stripe.

    You or someone on your team has added that endpoint in your Stripe webhook settings, which you can view and edit here: https://dashboard.stripe.com/account/webhooks.

    Please note that in most cases a failing webhook does not impact your payments or payouts. However, if you use subscriptions we rely on your webhook endpoint to notify you of new invoices. These invoices may be delayed for up to three days if your webhook is unable to successfully receive them. If you use Checkout, you may be handling the checkout.session.completed event as part of your purchase fulfillment process as described here: https://stripe.com/docs/payments/checkout/fulfillment#webhooks. If you do, failure to handle these events may interfere with purchase fulfillment.

    We’ve attempted to notify the endpoint 26 times since November 1, 2020 at 11:02PM. If this endpoint is important to your application, please try and fix the issue. If you do not need the webhook endpoint you can delete it from your Stripe webhook settings. We will stop sending notifications to your webhook by November 10, 2020 around 11:02PM.

    Here is the summary of errors we have received when sending you webhooks:
    * 26 requests returned a HTTP 301, which usually signifies you need to update your webhook URL to point towards a new location.

    You need to return anything between a HTTP 200 to 299 for the webhook to be considered successfully delivered.
    For more details on the errors, you can find your events page here: https://dashboard.stripe.com/events.

    You can also always review the history of webhooks and failed request logs right from your dashboard: https://dashboard.stripe.com/events.

    This email is the last time we’ll reach out to you before disabling the webhook.

    For more in depth information about how to use webhooks, we recommend taking a look at our documentation: https://stripe.com/docs/webhooks.

    Yours,

    The Stripe team

    Email from stripe support after contacting for help:

    Hi there,

    Thanks for confirming the email.

    It does appear to that the webhook notifications we sent to endpoint http://themagnificenttycoon.com/?wc-api=wc_stripe were failing.

    I took a look at some of the events in your account and see that your server is replying with an HTTP response code of 301. This indicates that your webhook page has moved. Stripe expects your webhook handler to reply with an HTTP status code in the 200-299 range, so delivery of this event failed as a result.

    You can read a bit more about the status code your site returned to Stripe here:
    https://en.wikipedia.org/wiki/HTTP_301

    This error indicates that their webhook page/URL has changed. You may want to reach out to WordPress to confirm the endpoint. The way to resolve this is usually just to replace the URL in your dashboard webhook settings with the one that your site is redirecting Stripe to currently:
    https://dashboard.stripe.com/account/webhooks

    Here’s a quick link to reach out WordPress Woocommerce support: https://wordpress.org/support/plugin/woocommerce/

    Once this is updated, any pending events sent to this endpoint should succeed.

    I hope that helps. If anything else comes up, shoot us an email right away and we will do our best to help.

    Always,
    Joi

    My store status currently:
    `
    ### WordPress Environment ###

    WordPress address (URL): https://themagnificenttycoon.com
    Site address (URL): https://themagnificenttycoon.com
    WC Version: 4.6.2
    REST API Version: ✔ 4.6.2
    WC Blocks Version: ✔ 3.7.1
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 1.6.2
    Log Directory Writable: ✔
    WP Version: 5.5.3
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 7.3.23
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.59.0
    OpenSSL/1.0.2r

    SUHOSIN Installed: –
    MySQL Version: 5.6.40-84.0-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Database ###

    WC Database Version: 4.6.2
    WC Database Prefix: wppm_
    Total Database Size: 22.46MB
    Database Data Size: 17.64MB
    Database Index Size: 4.82MB
    wppm_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    wppm_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wppm_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wppm_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_actionscheduler_actions: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
    wppm_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_commentmeta: Data: 1.52MB + Index: 0.59MB + Engine InnoDB
    wppm_comments: Data: 4.52MB + Index: 0.81MB + Engine InnoDB
    wppm_hfcm_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_hustle_entries: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_hustle_entries_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wppm_hustle_modules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_hustle_modules_meta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wppm_hustle_tracking: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wppm_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_options: Data: 3.02MB + Index: 1.09MB + Engine InnoDB
    wppm_postmeta: Data: 2.39MB + Index: 0.33MB + Engine InnoDB
    wppm_posts: Data: 3.27MB + Index: 0.19MB + Engine InnoDB
    wppm_subscribe_reloaded_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wppm_term_relationships: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    wppm_term_taxonomy: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wppm_totalsoft_galleryv_dbt: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_totalsoft_galleryv_dbt_1: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_totalsoft_galleryv_dbt_2: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_totalsoft_galleryv_id: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_totalsoft_galleryv_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_totalsoft_galleryv_videos: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_totalsoft_new_plugin: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_usermeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    wppm_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wppm_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wppm_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wppm_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wppm_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wppm_yoast_indexable: Data: 0.36MB + Index: 0.23MB + Engine InnoDB
    wppm_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wppm_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wppm_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wppm_yoast_seo_links: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wppm_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    attachment: 389
    elementor_library: 1
    jetpack_migration: 2
    jp_img_sitemap: 2
    jp_sitemap: 2
    jp_sitemap_master: 2
    jp_vid_sitemap: 2
    nav_menu_item: 16
    oembed_cache: 1
    page: 22
    post: 127
    product: 26
    revision: 410
    shop_coupon: 1
    shop_order: 4

    ### Security ###

    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔

    ### Active Plugins (17) ###

    Antispam Bee: by pluginkollektiv – 2.9.2
    Elementor: by Elementor.com – 3.0.13
    Header Footer Code Manager: by 99robots – 1.1.8
    Insert Headers and Footers: by WPBeginner – 1.4.6
    Jetpack by WordPress.com: by Automattic – 9.0.2
    SG Optimizer: by SiteGround – 5.7.3
    Subscribe to Comments Reloaded: by WPKube – 200813
    UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.34

    WordPress Users & WooCommerce Customers Import Export(BASIC): by WebToffee – 2.0.1
    WooCommerce Blocks: by Automattic – 3.7.1
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.0 – Installed version not tested with active version of WooCommerce 4.6.2
    WooCommerce Stripe Gateway: by WooCommerce – 4.5.3 – Installed version not tested with active version of WooCommerce 4.6.2
    WooCommerce Shipping & Tax: by Automattic – 1.25.1 – Installed version not tested with active version of WooCommerce 4.6.2
    WooCommerce: by Automattic – 4.6.2
    Hustle: by WPMU DEV – 7.3.3
    Yoast SEO: by Team Yoast – 15.2.1
    WP Social Sharing: by Arjun Jain – 2.2

    ### Inactive Plugins (2) ###

    One Click Demo Import: by ProteusThemes – 2.6.1
    WP All Export: by Soflyy – 1.2.7

    ### 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: #117 – /shop/
    Cart: #118 – /cart/
    Checkout: #119 – /checkout/
    My account: #120 – /my-account/
    Terms and conditions: ❌ Page not set

    ### Theme ###

    Name: Blog Express
    Version: 2.0.2
    Author URL: https://axlethemes.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: ❌ Not declared

    ### Templates ###

    Overrides: –

    ### Action Scheduler ###

    Complete: 78
    Oldest: 2020-10-09 07:36:47 +0000
    Newest: 2020-11-08 23:35:59 +0000

    Pending: 1
    Oldest: 2020-11-09 09:56:55 +0000
    Newest: 2020-11-09 09:56:55 +0000

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘301 webhook delivery error’ is closed to new replies.