404 returns for Shopify's webhooks
My Shopify app is missing the internal webhook route and webhooks are failing with 404 errors.
Problem:
The Shopify webhook endpoint
/api/connections/shopify/events returns 404.
Evidence:
1. Shopify webhooks are successfully registered in Shopify (16 webhooks)
2. When Shopify sends webhooks, they fail with:
"No route matches URL '/api/connections/shopify/events'"
(see production logs from today around 13:16:44)
3. The webhook URL is missing from Settings → Plugins → Shopify
(only the GDPR webhook URL is visible)
History:
This was working 3 days ago. Since then, webhooks stopped arriving.1 Reply
Hello,
The proper webhook URL is the following format: "https://app-sub-test--development.gadget.app/api/webhooks/shopify". You shouldn't be setting a URL yourself as we handle webhook registrations for you. I would recommend that you remove all of your [[webhooks.subscriptions]] configurations and re-deploy the toml. Then you'll need to reregister webhooks with the Gadget UI (installs page, 1 shop at a time).