Basically what the title says, if i create a webhook in Settings → Notification → Webhooks (for example Order created topic) and try to either test it, or to create an actual order, i do not get anything on the Hydrogen “Runtime logs”, not the error, not the request nothing.
If i change the callback url to be on app hosted on Vercel or anywhere else everything works fine.
I thought maybe i need to create webhook different way so i tried that as well, i tried to create a webhook in Graphiql admin app, as well as inside the hydrogen (basically i create a custom app), and nothing seems to be working.
Are webhooks forbiden from the hydrogen? Or maybe i am missing something
Hey @Andrija_Obradovic - just out of curiosity, are you having the webhook callback URL point back to your Hydrogen instance itself? It should generally be pointed to a webhook listening server that’s external to Shopify.
If you’re hosting Hydrogen through Oxygen (and it’s hosted on Shopify), this could be why you’re not seeing the webhooks be returned to your listening server. You should be pointing your webhook callback URL to an external listening server (not on Shopify’s domains)
If you are pointing the webhook to an external server though, just let me know and I can take a closer look into this - hope this helps!
Yes I did host it on Oxygen, but why is this not allowed. it doesn’t make much sense, we are already building the whole storefront and hosting it on Shopify, and now we need hosting just for webhooks
If you’re hosting a Hydrogen storefront through Oxygen, this would result in the storefront being hosted by Shopify services and trigger that “hard denial” for webhook servers on our domains if that makes sense.
You could technically host the webhook server on Hydrogen if you hosted your Hydrogen shop outside of Oxygen, but it is a current limitation that merchant/partner-developer webhook servers aren’t supported on Shopify’s domains.
Hope this helps, let me know if I can clarify anything as always here.