Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

"Your webhook is failing" email, no log of webhook requests in backend

"Your webhook is failing" email, no log of webhook requests in backend

seandk88
Shopify Partner
3 0 1

Hi there, 

 

I have setup a Webhook through Shopify admin at a specified address and it works exactly as expected.

 

However when setup via Shopify API it doesn't reach the backend, there is no evidence in the logs. However Shopify is telling me it is firing as indicated by the emails that is is failing to return a successful response.

 

When I access the current webhooks setup via API the response is as follows, 

 

{
    "webhooks": [
        {
            "id"745070395455,
            "address""https://shopify-api-seandk88.pythonanywhere.com/test",
            "topic""orders/create",
            "created_at""2019-12-18T15:07:50+00:00",
            "updated_at""2019-12-18T15:10:13+00:00",
            "format""json",
            "fields": [],
            "metafield_namespaces": [],
            "api_version""2019-10",
            "private_metafield_namespaces": []
        },
        {
            "id"745072787519,
            "address""https://shopify-api-seandk88.pythonanywhere.com/test",
            "topic""carts/create",
            "created_at""2019-12-18T15:17:35+00:00",
            "updated_at""2019-12-18T15:17:35+00:00",
            "format""json",
            "fields": [],
            "metafield_namespaces": [],
            "api_version""2019-10",
            "private_metafield_namespaces": []
        }
    ]
}
 
Any help is appreciated
Reply 1 (1)

hassain
Shopify Staff (Retired)
624 104 189

Hey @seandk88 ,

 

Shopify will send out the "Your webhook is failing" email if Shopify fails to retrieve a timely Status 200 response after multiple retries when it sends a POST request for the webhook event to your specified endpoint address.

 

Due to this, I would check to make sure that your endpoint address of "https://shopify-api-seandk88.pythonanywhere.com/test" is correctly able to receive and process POST requests from Shopify for the "orders/create" and "carts/create" webhook events, and is able to return a status 200 response to Shopify in a very timely manner. As a quick test, I just sent out sample `{ "Hello": "World" }` POST request to the endpoint of https://shopify-api-seandk88.pythonanywhere.com/test from my localhost and I received a Status 500 'Internal Server Error' as a response, so there could be something not working with this endpoint. 

 

To learn more visit the Shopify Help Center or the Community Blog.