• Resolved dave8441

    (@dave8441)


    I have been seeing this error in the logs for the past two days. How can this be fixed? Please advise.

    2023-03-21T00:17:07+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T00:17:07+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T00:25:01+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T00:25:01+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T02:18:18+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T02:18:18+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T02:26:31+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T02:26:31+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T04:19:40+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T04:19:40+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T04:27:48+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T04:27:48+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T06:20:11+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T06:20:11+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T06:29:22+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T06:29:22+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T08:23:03+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T08:23:03+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T08:31:17+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T08:31:17+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T10:23:45+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T10:23:45+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T10:33:45+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T10:33:45+00:00 ERROR Failed to retrieve stored webhook data.
    2023-03-21T11:38:09+00:00 DEBUG POST https://api.paypal.com/v1/oauth2/token?grant_type=client_credentials
    Response Debug ID: 745b966d894b
    Response: Array
    (
    [code] => 200
    [message] => OK
    )
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @dave8441

    The ERROR Failed to retrieve stored webhook data. may be related to a potentially missing option key in your database. Did you possibly migrate this site at any point, e.g. from staging to production?

    As a first measure, I suggest resubscribing your webhooks as explained here.

    If that results in an error, or it doesn’t help, I suggest disconnecting and reconnecting your PayPal account. This will set up a new REST application with the webhooks and recreate the option, which can often resolve webhook-related issues.

    Please let us know how this works for you.
    Thanks!

    Kind regards,
    Niklas

    Thread Starter dave8441

    (@dave8441)

    Hi @niklasinpsyde

    The site was not migrated at any point from staging to production.

    Resubscribing resulted in an error, so then I disconnected & reconnected the Paypal account. Then I resubscribed again which was successful. Then I clicked on the webhook simulation button, and it said “The webhook was received successfully.” However, that action generated this in the log: “ERROR Webhook verification failed.” Is that a false message that I can ignore? The full log is pasted below.

    2023-03-22T14:38:38+00:00 DEBUG GET https://api.paypal.com/v1/notifications/webhooks
    Response Debug ID: 1d23022aeb6bc
    Response: Array
    (
    [code] => 200
    [message] => OK
    ) 2023-03-22T14:38:47+00:00 DEBUG POST https://api.paypal.com/v1/notifications/verify-webhook-signature
    Request Body: {"transmission_id":"cf272a90-c89b-11ed-b1bc-cdaee0e256b3","transmission_time":"2023-03-22T10:25:03Z","cert_url":"https:\/\/api.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-38317689","auth_algo":"SHA256withRSA","transmission_sig":"C1+zDuIhk2yFlavVSB1vCoWhuxHdjZGEVUZLw8y+TLOzA4s8iGVa6\/ETb\/kWRFl\/YOv9qejHymkpjMrRbg9GZUsKnMEqXV204foZKpb8BgyCl3lNAtTs\/7plP322O7v6Tf4HUfyW2gsdmTueWk6u3sE+ds1+PNNnzep\/HO4FX06OM4exV5T4XAit5\/uoXLCG3T5vfN8UvTzXNEfCF1WjRCpxS\/4LIFwUIaO2pIN8w+gnRIB3micFyFElvuqs5VQqIcHIxBcsBrhTXg1yOuX4V37CuuFWlHdouRozgCNroybhUAFn\/AEZT8JnCXAHX4yhQJTnRDblNmu\/Vr+nYCb3JA==","webhook_id":"5GP15810A51797506","webhook_event":{"id":"WH-9T273973VS9982711-99102486NM7605420","event_version":"1.0","create_time":"2023-03-22T10:24:59.252Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for $ 112.71 USD","resource":{"id":"3EF30131NS798414B","amount":{"currency_code":"USD","value":"112.71"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"USD","value":"112.71"},"paypal_fee":{"currency_code":"USD","value":"4.42"},"net_amount":{"currency_code":"USD","value":"108.29"}},"invoice_id":"bdecbb-6059","custom_id":"6059","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"2V771375UV194132M"}},"create_time":"2023-03-22T10:24:54Z","update_time":"2023-03-22T10:24:54Z","links":[{"href":"https:\/\/api.paypal.com\/v2\/payments\/captures\/3EF30131NS798414B","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v2\/payments\/captures\/3EF30131NS798414B\/refund","rel":"refund","method":"POST"},{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M","rel":"up","method":"GET"}]},"links":[{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-9T273973VS9982711-99102486NM7605420","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-9T273973VS9982711-99102486NM7605420\/resend","rel":"resend","method":"POST"}]}}
    Response Debug ID: 87d1b92559193
    Response: Array
    (
    [code] => 200
    [message] => OK
    ) 2023-03-22T14:38:47+00:00 ERROR Webhook verification failed.
    2023-03-22T14:38:48+00:00 DEBUG POST https://api.paypal.com/v1/notifications/verify-webhook-signature
    Request Body: {"transmission_id":"cf272a90-c89b-11ed-b1bc-cdaee0e256b3","transmission_time":"2023-03-22T10:25:03Z","cert_url":"https:\/\/api.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-38317689","auth_algo":"SHA256withRSA","transmission_sig":"C1+zDuIhk2yFlavVSB1vCoWhuxHdjZGEVUZLw8y+TLOzA4s8iGVa6\/ETb\/kWRFl\/YOv9qejHymkpjMrRbg9GZUsKnMEqXV204foZKpb8BgyCl3lNAtTs\/7plP322O7v6Tf4HUfyW2gsdmTueWk6u3sE+ds1+PNNnzep\/HO4FX06OM4exV5T4XAit5\/uoXLCG3T5vfN8UvTzXNEfCF1WjRCpxS\/4LIFwUIaO2pIN8w+gnRIB3micFyFElvuqs5VQqIcHIxBcsBrhTXg1yOuX4V37CuuFWlHdouRozgCNroybhUAFn\/AEZT8JnCXAHX4yhQJTnRDblNmu\/Vr+nYCb3JA==","webhook_id":"5GP15810A51797506","webhook_event":{"id":"WH-9T273973VS9982711-99102486NM7605420","event_version":"1.0","create_time":"2023-03-22T10:24:59.252Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for $ 112.71 USD","resource":{"id":"3EF30131NS798414B","amount":{"currency_code":"USD","value":"112.71"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE","dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"]},"seller_receivable_breakdown":{"gross_amount":{"currency_code":"USD","value":"112.71"},"paypal_fee":{"currency_code":"USD","value":"4.42"},"net_amount":{"currency_code":"USD","value":"108.29"}},"invoice_id":"bdecbb-6059","custom_id":"6059","status":"COMPLETED","supplementary_data":{"related_ids":{"order_id":"2V771375UV194132M"}},"create_time":"2023-03-22T10:24:54Z","update_time":"2023-03-22T10:24:54Z","links":[{"href":"https:\/\/api.paypal.com\/v2\/payments\/captures\/3EF30131NS798414B","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v2\/payments\/captures\/3EF30131NS798414B\/refund","rel":"refund","method":"POST"},{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M","rel":"up","method":"GET"}]},"links":[{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-9T273973VS9982711-99102486NM7605420","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-9T273973VS9982711-99102486NM7605420\/resend","rel":"resend","method":"POST"}]}}
    Response Debug ID: c6f45f767f4f1
    Response: Array
    (
    [code] => 200
    [message] => OK
    ) 2023-03-22T14:38:48+00:00 ERROR Webhook verification failed.
    2023-03-22T14:38:50+00:00 DEBUG POST https://api.paypal.com/v1/notifications/verify-webhook-signature
    Request Body: {"transmission_id":"c7b5f430-c89b-11ed-a4a7-61f87e183dc4","transmission_time":"2023-03-22T10:24:51Z","cert_url":"https:\/\/api.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-38317689","auth_algo":"SHA256withRSA","transmission_sig":"TGJE29qrVz1kOG+DGFyprwRxJp\/7paUazk\/cXxjP8nCdIHk4yzUrhbTFJ3u6YuzH43O5BMy3tiP918LdeuPeIzrvv+GZZuSpKYjOBeYvuyLUfTOOyao57zJkIy558iOryu3yceOhsGcAe8GADK5ZVqYgTsNCAp5MLtwqtixlF6g4T4E6DyjUcxFU8BsNEE873XUR+0xX3pceZBmd3mjYz2Pg8EKSvoAIK8ZrR6ii72JHHyrMXuBdypiS3w6pQKacqkNLT33Vk\/7m0qIqiv3pWdVsxXqbWKuUruriHk2uzTnN+aEYzL\/bscOZ0hEm+mba\/Ts5bdJIR5eWfU7jPKG6Pg==","webhook_id":"5GP15810A51797506","webhook_event":{"id":"WH-1UF701806P4471543-3TV27259LN550484Y","event_version":"1.0","create_time":"2023-03-22T10:24:47.123Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"create_time":"2023-03-22T10:24:24Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"112.71","breakdown":{"item_total":{"currency_code":"USD","value":"70.56"},"shipping":{"currency_code":"USD","value":"42.15"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"payee":{"merchant_id":"2AJZ2KZ9JYSA8","display_data":{"brand_name":"Doyle Shamrock Industries"}},"description":"","items":[{"name":"NSF Certified 7\" Bus Tubs and Bus Boxes (Box of 12) - Brown (Box of 12)","unit_amount":{"currency_code":"USD","value":"70.56"},"quantity":"1","description":"","sku":"BT704-12","category":"PHYSICAL_GOODS"}],"shipping":{"name":{"full_name":"Chantal Brown"},"address":{"address_line_1":"99 new st","address_line_2":"1","admin_area_2":"Seymour","admin_area_1":"CT","postal_code":"06483","country_code":"US"}}}],"links":[{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M","rel":"update","method":"PATCH"},{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M\/capture","rel":"capture","method":"POST"}],"id":"2V771375UV194132M","payment_source":{"paypal":{}},"intent":"CAPTURE","payer":{"name":{"given_name":"Chantal","surname":"Brown"},"email_address":"[email protected]","payer_id":"NVENM88G6EDVJ","address":{"address_line_1":"99 new st","address_line_2":"1","admin_area_2":"Seymour","admin_area_1":"CT","postal_code":"06483","country_code":"US"}},"status":"APPROVED"},"links":[{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-1UF701806P4471543-3TV27259LN550484Y","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-1UF701806P4471543-3TV27259LN550484Y\/resend","rel":"resend","method":"POST"}]}}
    Response Debug ID: 14081b4f9cb2e
    Response: Array
    (
    [code] => 200
    [message] => OK
    ) 2023-03-22T14:38:50+00:00 ERROR Webhook verification failed.
    2023-03-22T14:38:50+00:00 DEBUG POST https://api.paypal.com/v1/notifications/verify-webhook-signature
    Request Body: {"transmission_id":"c7b5f430-c89b-11ed-a4a7-61f87e183dc4","transmission_time":"2023-03-22T10:24:51Z","cert_url":"https:\/\/api.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-38317689","auth_algo":"SHA256withRSA","transmission_sig":"TGJE29qrVz1kOG+DGFyprwRxJp\/7paUazk\/cXxjP8nCdIHk4yzUrhbTFJ3u6YuzH43O5BMy3tiP918LdeuPeIzrvv+GZZuSpKYjOBeYvuyLUfTOOyao57zJkIy558iOryu3yceOhsGcAe8GADK5ZVqYgTsNCAp5MLtwqtixlF6g4T4E6DyjUcxFU8BsNEE873XUR+0xX3pceZBmd3mjYz2Pg8EKSvoAIK8ZrR6ii72JHHyrMXuBdypiS3w6pQKacqkNLT33Vk\/7m0qIqiv3pWdVsxXqbWKuUruriHk2uzTnN+aEYzL\/bscOZ0hEm+mba\/Ts5bdJIR5eWfU7jPKG6Pg==","webhook_id":"5GP15810A51797506","webhook_event":{"id":"WH-1UF701806P4471543-3TV27259LN550484Y","event_version":"1.0","create_time":"2023-03-22T10:24:47.123Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"create_time":"2023-03-22T10:24:24Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"112.71","breakdown":{"item_total":{"currency_code":"USD","value":"70.56"},"shipping":{"currency_code":"USD","value":"42.15"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"payee":{"merchant_id":"2AJZ2KZ9JYSA8","display_data":{"brand_name":"Doyle Shamrock Industries"}},"description":"","items":[{"name":"NSF Certified 7\" Bus Tubs and Bus Boxes (Box of 12) - Brown (Box of 12)","unit_amount":{"currency_code":"USD","value":"70.56"},"quantity":"1","description":"","sku":"BT704-12","category":"PHYSICAL_GOODS"}],"shipping":{"name":{"full_name":"Chantal Brown"},"address":{"address_line_1":"99 new st","address_line_2":"1","admin_area_2":"Seymour","admin_area_1":"CT","postal_code":"06483","country_code":"US"}}}],"links":[{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M","rel":"update","method":"PATCH"},{"href":"https:\/\/api.paypal.com\/v2\/checkout\/orders\/2V771375UV194132M\/capture","rel":"capture","method":"POST"}],"id":"2V771375UV194132M","payment_source":{"paypal":{}},"intent":"CAPTURE","payer":{"name":{"given_name":"Chantal","surname":"Brown"},"email_address":"[email protected]","payer_id":"NVENM88G6EDVJ","address":{"address_line_1":"99 new st","address_line_2":"1","admin_area_2":"Seymour","admin_area_1":"CT","postal_code":"06483","country_code":"US"}},"status":"APPROVED"},"links":[{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-1UF701806P4471543-3TV27259LN550484Y","rel":"self","method":"GET"},{"href":"https:\/\/api.paypal.com\/v1\/notifications\/webhooks-events\/WH-1UF701806P4471543-3TV27259LN550484Y\/resend","rel":"resend","method":"POST"}]}}
    Response Debug ID: 9cf77b59b6f84
    Response: Array
    (
    [code] => 200
    [message] => OK
    ) 2023-03-22T14:38:50+00:00 ERROR Webhook verification failed.
    2023-03-22T14:41:09+00:00 DEBUG POST https://api.paypal.com/v1/notifications/simulate-event
    Request Body: {"webhook_id":"5GP15810A51797506","event_type":"CHECKOUT.ORDER.APPROVED","resource_version":"2.0"}
    Response Debug ID: d3a142364408b
    Response: Array
    (
    [code] => 202
    [message] => Accepted
    ) 2023-03-22T14:42:15+00:00 INFO Received simulated webhook.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @dave8441

    Thanks for the feedback.

    I have seen this error before, but I am not sure if we can do something about it, as the plugin just re-sends the webhook data and headers to PayPal.

    I suggest contacting the PayPal Merchant Technical Support with your log. Most often, the Debug ID helps the MTS to find the correct event in their system, and they can usually see more than what is logged from the plugin.

    Errors are rarely reassuring, so please let us know when you hear back from the MTS, as we are interested in their point of view. Thanks!

    Kind regards,
    Niklas

    Thread Starter dave8441

    (@dave8441)

    Hi?@niklasinpsyde,

    I contacted PayPal support and this issue is now fixed. Their reply is pasted below.

    “Checking the attached log file and our webhook logs, I see that it was fired from PayPal in 2023-03-22 at 10:24:51, it didn’t get a response from the webhook receiver, so it has a fail error attached.

    Checking the more recent webhooks, starting on 2023-03-22 at 13:26:12, they show as successfully delivered, that leads me to believe that resetting the connection and resubscribing the webhooks fixed the issue.”

    It does not sound like they actually did anything though. The error message did occur even after I reconnected & resubscribed. Maybe it took a while for my action to “propagate”, who knows.

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ERROR Failed to retrieve stored webhook data’ is closed to new replies.