GDPR Related webhook testing
Hi, I'm trying to test the GDPR webhook using the shopify CLI like in the image attached.
I see that the request is retrieved by Gadget app from the debug logs. But, I don't see anything else, I don't see the shopifyGdprRequest model data too. My logic is just to log every GDPR request happen.
My app is: https://leaf-answers.gadget.app/edit/development/files/api/models/shopifyGdprRequest/actions/create.ts
Is there anything I can do to actually test the GDPR webhook? I've been searching the whole internet and it seems hard to do this.
Thank you


5 Replies
Hi mrobby,
There is no way to test this unfortunately as Shopify does not provide one
Hey mrobby, could you please provide the trace from the request in your attached screenshot?
Hey Jenny, do you mean the trace_id? The trace for the screenshot is
684068f8a47408ab8264529c2e984211
thank you for the trace! Unfortuantely the reason you see the webhook coming in but not being processed is due to the fact that the example webhooks sent via the Shopify CLI contains fake test data- Gadget looks at the
x-shopify-shop-domain
header in the webhook request to determine which shop installed on your app to process the webhook for, but this value from the CLI is shop.myshopify.com
which does not match a real shop and so the webhook is not processed. You would need to trigger this as a real webhook from Shopify's side.Thanks Jenny, that's explain a lot.