Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

Why does my webhook with remix work inconsistently?

Why does my webhook with remix work inconsistently?

nelos7
Shopify Partner
7 0 2

Hi,

I use the shopify remix template for creating my app, but I don't know why the webhooks work approximatively 1 times on 20, I don't figure out what is the problem, here is the webhook subscription code :

webhooks: {
    APP_UNINSTALLED: {
      deliveryMethod: DeliveryMethod.Http,
      callbackUrl: "/webhooks",
    },
    CUSTOMERS_DATA_REQUEST: {
      deliveryMethod: DeliveryMethod.Http,
      callbackUrl: "/webhooks",
    },
    CUSTOMERS_REDACT: {
      deliveryMethod: DeliveryMethod.Http,
      callbackUrl: "/webhooks",
    },
    PRODUCTS_UPDATE: {
      deliveryMethod: DeliveryMethod.Http,
      callbackUrl: "/webhooks",
    },
  }
Has anyone ever has this problem ?
Reply 1 (1)

hpatoio
Shopify Partner
4 0 0

Do you see anything related to webhook in you log ? Does your app has the right permission ? Check here the needed permission for each topic https://shopify.dev/docs/api/admin-graphql/2023-01/enums/WebhookSubscriptionTopic