Title: Webhook &#8220;Check URL&#8221; error
Last modified: April 24, 2020

---

# Webhook “Check URL” error

 *  Resolved [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/)
 * Hi!
 * Under Webhooks in Braitnree Dashboard, i have this notification after set up 
   the webhooks for plugin:
 * “A webhook notification is a message indicating that a specific event has occurred,
   such as a canceled subscription. When the event occurs, the notification is sent
   via HTTPS POST to a destination url of your choice. Learn more.
 * Clicking a webhook’s Check URL action will fire a test webhook to your endpoint.
   Watch out though, if your webhook handling code doesn’t check notification types
   this might cause unexpected side effects.
    If you have older non-HTTPS webhooks,
   they have been disabled and can no longer be checked.”
 * Then hit “Check URL”, and I received this error message:
    “Last delivery unsuccessful.
   Invalid server response 401”
 * How to solve this?
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebhook-check-url-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12727681)
 * Hi [@losi](https://wordpress.org/support/users/losi/),
 * When you perform the webhook test make sure you have the proper environment set
   in the plug-ins API settings page.
 * For example if you have sandbox mode in abled and you try to perform a test in
   production you will get the 401 response code.
 * Kind regards,
 *  Thread Starter [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12727745)
 * Hi,
    Thank You for quick answer.
 * After set-up “Production” enviroment to active (instead of sandbox), the error
   message stay.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12727768)
 * [@losi](https://wordpress.org/support/users/losi/) did you enter your production
   API keys?
 *  Thread Starter [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12727777)
 * Sure!
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12727879)
 * [@losi](https://wordpress.org/support/users/losi/),
 * I’ll have to reach out to Braintree because when I test, I get a 404 as well 
   but the debug logs shows that the webhook was received. So they appear to not
   be processing the 200 response code.
 * Check your debug log and if you see `INFO Webhook received. Kind: check.` then
   it’s working despite what Braintree’s control panel says.
 * Kind Regards,
 *  Thread Starter [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12727939)
 * “wc-braintre…” debug log contains just one line:
    “2020-04-22T17:12:11+00:00 
   ERROR Error creating client token. Exception: Braintree\Exception\Configuration”
 * And Braintree payment not visible in WC wizard process. (Screenshot about this:
   [https://drive.google.com/file/d/1kGz-X6YfQHw2pgPqvipzhgGf9Swy-FXo/view?usp=sharing](https://drive.google.com/file/d/1kGz-X6YfQHw2pgPqvipzhgGf9Swy-FXo/view?usp=sharing))
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12727963)
 * It’s not visible in the WooCommmerce wizard process because we aren’t the same
   company as WooCommmerce. They promote their own plugins in that setup.
 * That log is from 4/22 so not relevant. In API settings make sure you have debug
   log enabled.
    Then perform a connection test.
 *  Thread Starter [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12728029)
 * Understand.
 * Made this process sometimes, but nothing show in logs 🙁
 *  Thread Starter [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12728036)
 * Sorry, sometimes many times
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12728063)
 * Is your connection test working?
 *  Thread Starter [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12728079)
 * Yes, get a green success message (although it flashes for only a few tenths of
   a second)
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12728103)
 * [@losi](https://wordpress.org/support/users/losi/) I checked your url using postman
   and I get the following response:
 *     ```
       {
           "code": "rest_cannot_access",
           "message": "Only authenticated users can access the REST API.",
           "data": {
               "status": 401
           }
       }
       ```
   
 * That tells me you have another plugin or custom code that is preventing access
   to the WP REST API if the user is not logged on. You would need to remove that
   so that webhooks can be received. Webhooks come from Braintree so there won’t
   be any logged in user.
 *  Thread Starter [Losi](https://wordpress.org/support/users/losi/)
 * (@losi)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12728151)
 * This is a -relatively- new installation.
    But i turned off every plugin, at this
   time in log show this: 2020-04-24T23:01:46+00:00 INFO Webhook received. Kind:
   check.
 * Debugging may come…
 * Thank You for all!

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Webhook “Check URL” error’ is closed to new replies.

 * ![](https://ps.w.org/woo-payment-gateway/assets/icon-256x256.png?rev=2142799)
 * [Payment Plugins Braintree For WooCommerce](https://wordpress.org/plugins/woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway/reviews/)

## Tags

 * [webhook](https://wordpress.org/support/topic-tag/webhook/)

 * 13 replies
 * 2 participants
 * Last reply from: [Losi](https://wordpress.org/support/users/losi/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/webhook-check-url-error/#post-12728151)
 * Status: resolved