Pub/Sub Webhook Subscription via TOML - no messages received in app

I created a subscription to an order/create webhook in my toml file with google pub/sub. My app’s endpoint is simply a named webhook file containing a Remix action that uses authenticate.webhook

I receive messages correctly in Google Pub as well as in my Shopify Metrics but I don’t receive anything in my app. The manual trigger with Shopify cli also works. Should I manually create a connection between my app and google pub or Shopify is supposed to manage it and it should work here? The problem has already been mentioned here :

If you have any ideas, thank you very much!



image
Capture d’écran 2025-02-04 094954

:wave: Hi @Antoine_dev, unfortunately the remix template and webhooks examples do not include examples for receiving data from PubSub. I would suggest taking a look at the @google-cloud/pubsub node.js client. In particular they have a sample with flow control which shows how you would receive the PubSub messages and be able to acknowledge them.

I’ll add an issue for the team to see if we can add some examples for receiving webhooks from PubSub/EventBridge to our documentation.

2 Likes