laravel-shopify icon indicating copy to clipboard operation
laravel-shopify copied to clipboard

UnInstalled WebHook not fire. How to check it work?

Open duykhoa87 opened this issue 3 years ago • 4 comments

I already registered Uninstalled Webhook when install all below:

SHOPIFY_WEBHOOK_1_TOPIC=app/uninstalled
SHOPIFY_WEBHOOK_1_ADDRESS=https://domain/webhook/app-uninstalled
"webhooks" => array:1 [▼
        0 => array:10 [▼
          "id" => 1056783499426
          "address" => "https://domain/webhook/app-uninstalled"
          "topic" => "app/uninstalled"
          "created_at" => "2021-07-28T10:53:37+07:00"
          "updated_at" => "2021-07-28T10:53:37+07:00"
          "format" => "json"
          "fields" => []
          "metafield_namespaces" => []
          "api_version" => "2021-01"
          "private_metafield_namespaces" => []
        ]
      ]

But I dont see any job in jobs table. Is there any way to check that?

duykhoa87 avatar Jul 28 '21 07:07 duykhoa87

Run a get API call to /admin/webhooks.json, see if your endpoints are listed. If they are, then they'll work.

gnikyt avatar Jul 30 '21 11:07 gnikyt

"address" => "https://domain/webhook/app-uninstalled" replace your app domain.

peking2008 avatar Aug 06 '21 04:08 peking2008

@duykhoa87 Did you see any results?

gnikyt avatar Aug 06 '21 13:08 gnikyt

I suggest you have a look at the laravel.log inside /storage/logs for an exception that might be firing. At least, looking at the logs helped me... I found out that I had missed creating the Job App/Jobs/AppUninstalledJob although I had enabled it in config/shopify-app.php

burfbari avatar Aug 28 '21 10:08 burfbari

Closing as a stale issue but usually testing with a tunneling service like ngrok is the best way to go.

Kyon147 avatar Sep 11 '22 07:09 Kyon147