Webhooks are not reaching to server


We have a webhook url registered with Shopify for some events. Recently we are getting an error from Shopify saying that the webhook URL returned non 200 responses. We are processing the webhook only after we send a response back to them. So there is no way we are responding to them with non 200 codes. Also, our server logs do not indicate any traffic regarding that non 200 responses Shopify is saying. So this made confusion to us. We are doubting is there anyway Cloudflare intercepted the requests and served before us (like cache or something). The webhook method is ‘POST’. Is this any Cloudflare config issue? Any help appreciated.

It is difficult for us to say without more information here. Are you able to share a screenshot of what your seeing?

Ideally if you can show the HTTP response headers that Shopify are seeing?

1 Like

Thank you for the reply… Given below are the response header that seen by Shopify in an ideal situation,

date: Wed, 29 Jul 2020 04:11:11 GMT
content-type: application/json; charset=utf-8
content-length: 4
vary: Origin, Accept-Encoding
access-control-allow-credentials: true
x-xss-protection: 1; mode=block
x-frame-options: DENY
strict-transport-security: max-age=0; includeSubDomains
x-download-options: noopen
x-content-type-options: nosniff
surrogate-control: no-store
cache-control: no-store, no-cache, must-revalidate, proxy-revalidate
pragma: no-cache
expires: 0
etag: W/"4-Ut1MdMgT2zeQF5xPI2zq2so0Z6g"
via: 1.1 google
cf-cache-status: DYNAMIC
cf-request-id: 043a5d6e23000019009c041200000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 5ba3fe903f541900-SIN