Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
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,
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.