APP_UNINSTALLED webhook delivery failed with CLI Template (PHP)

mrcnee
Shopify Partner
3 0 0

Hi everyone, 

i'm working on a project based on the PHP Template from Shopify CLI, i noticed that the APP_UNINSTALLED webhook it's already done with this line of code: Session::where('shop', $shop)->delete(); 

 

It's only sample code or it's already the correct implementation? (the 3 mandatory webhooks are also inside the template but they are only placeholders with a log and a comment)

 

I suppose something it's missing cause the webhook it's not working (here you can see the failed delivery on npm run dev -- --reset) :

2023-06-22 09:28:42 │ backend  │ Starting Laravel development server: http://127.0.0.1:50810
2023-06-22 09:28:42 │ webhooks │ Sending APP_UNINSTALLED webhook to app server
2023-06-22 09:28:42 │ webhooks │ App isn't responding yet, retrying in 5 seconds
2023-06-22 09:28:42 │ backend  │ [Thu Jun 22 11:28:42 2023] PHP 8.2.3 Development Server (http://127.0.0.1:50810) started
2023-06-22 09:28:47 │ webhooks │ App isn't responding yet, retrying in 5 seconds
2023-06-22 09:28:48 │ backend  │ [Thu Jun 22 11:28:48 2023] 127.0.0.1:50830 Accepted
2023-06-22 09:28:49 │ backend  │ [Thu Jun 22 11:28:48 2023] 127.0.0.1:50830 Closing
2023-06-22 09:28:50 │ backend  │ [Thu Jun 22 11:28:50 2023] 127.0.0.1:50834 Accepted
2023-06-22 09:28:50 │ backend  │ [Thu Jun 22 11:28:50 2023] 127.0.0.1:50834 Closing
2023-06-22 09:28:50 │ backend  │ [Thu Jun 22 11:28:50 2023] 127.0.0.1:50887 Accepted
2023-06-22 09:28:50 │ backend  │ [Thu Jun 22 11:28:50 2023] 127.0.0.1:50887 Closing
2023-06-22 09:28:52 │ webhooks │ App isn't responding yet, retrying in 5 seconds
2023-06-22 09:28:52 │ backend  │ [Thu Jun 22 11:28:52 2023] 127.0.0.1:51039 Accepted
2023-06-22 09:28:53 │ backend  │ [Thu Jun 22 11:28:53 2023] 127.0.0.1:51039 Closing
2023-06-22 09:28:53 │ backend  │ [Thu Jun 22 11:28:53 2023] 127.0.0.1:51047 Accepted
2023-06-22 09:28:53 │ backend  │ [Thu Jun 22 11:28:53 2023] 127.0.0.1:51047 Closing
2023-06-22 09:28:53 │ backend  │ [Thu Jun 22 11:28:53 2023] 127.0.0.1:51050 Accepted
2023-06-22 09:28:53 │ backend  │ [Thu Jun 22 11:28:53 2023] 127.0.0.1:51050 Closing
2023-06-22 09:28:53 │ backend  │ [Thu Jun 22 11:28:53 2023] 127.0.0.1:51053 Accepted
2023-06-22 09:28:53 │ backend  │ [Thu Jun 22 11:28:53 2023] 127.0.0.1:51053 Closing
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51056 Accepted
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51056 Closing
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51059 Accepted
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51059 Closing
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51064 Accepted
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51064 Closing
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51073 Accepted
2023-06-22 09:28:54 │ backend  │ [Thu Jun 22 11:28:54 2023] 127.0.0.1:51073 Closing
2023-06-22 09:28:57 │ webhooks │ App hasn't started in time, giving up
2023-06-22 09:28:57 │ webhooks │ APP_UNINSTALLED webhook delivery failed

Also, if i manually uninstall (there is another way to do it?) the app from the development store i'm using i then keep getting 404 when trying to use it as the target store (i need to create a different store each time i uninstall my app...).

Everything webhook-related is from the template, i changed nothing.

thanks in advance

Replies 0 (0)