ERROR Failed to subscribe webhooks
-
I’m having a lot of these appear in the logs:
2023-02-07T11:28:30+00:00 ERROR Failed to retrieve stored webhook data.
When I go to Settings and click on Resubscribe I get
Operation failed. Check WooCommerce logs for more details. Webhook subscription failed.
Looking at the log I see:
2023-02-07T11:40:33+00:00 DEBUG POST https://api.paypal.com/v1/notifications/webhooks Request Body: {"url":"https:\/\/www.mysite.com\/wp-json\/paypal\/v1\/incoming","event_types":[{"name":"CHECKOUT.ORDER.APPROVED"},{"name":"CHECKOUT.ORDER.COMPLETED"},{"name":"CHECKOUT.PAYMENT-APPROVAL.REVERSED"},{"name":"PAYMENT.CAPTURE.REFUNDED"},{"name":"PAYMENT.AUTHORIZATION.VOIDED"},{"name":"PAYMENT.CAPTURE.REVERSED"},{"name":"PAYMENT.ORDER.CANCELLED"},{"name":"PAYMENT.CAPTURE.DENIED"},{"name":"PAYMENT.CAPTURE.COMPLETED"},{"name":"VAULT.PAYMENT-TOKEN.CREATED"},{"name":"VAULT.CREDIT-CARD.CREATED"},{"name":"PAYMENT.CAPTURE.PENDING"}]} Response Debug ID: XXXXXXXXX Response: Array ( [code] => 400 [message] => Bad Request ) Response Body: {"name":"WEBHOOK_URL_ALREADY_EXISTS","message":"Webhook URL already exists","debug_id":"XXXXXXXX","information_link":"https://developer.paypal.com/docs/api/webhooks/#errors","details":[],"links":[]} 2023-02-07T11:40:33+00:00 ERROR Failed to subscribe webhooks: [WEBHOOK_URL_ALREADY_EXISTS] Webhook URL already exists 2023-02-07T11:40:39+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks Response Debug ID: XXXXXXX Response: Array ( [code] => 200 [message] => OK ) 2023-02-07T11:40:39+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks Response Debug ID: XXXXXXX Response: Array ( [code] => 200 [message] => OK )
I’ve removed the Debug ID. I can supply that if required.
Any ideas? Thanks
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘ERROR Failed to subscribe webhooks’ is closed to new replies.