Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

CLI3 Cannot Reset App

JohnFoxtrot
Shopify Partner
6 1 2

Hey all,

 

I'm in the process of migrating an app from CLI 2 to CLI 3 and, in the process of troubleshooting another issue, am now triggering a webhook failure when trying to reset the app in CLI 3.

 

To start, I was previously able to reset the app multiple times. The error began occurring though after I selected "No, don't update URLs" on one of the resets. Now, when I attempt to start the dev environment, the "Update URLs" line is "Not yet configured":

 

yarndev-timeout_No_Update_URLS.jpg

 

Didn't think this would be much of an issue, but now the resets are throwing a webhook error:

yarndevreset_app_uninstalled_webhook_delivery_failed.jpg

 

Again, it's important to note that I was previously able to reset the app multiple times - the webhooks I have built in haven't changed so I don't believe that is the source of the issue.

 

I've tried creating new apps as well, but during that process I get the same error.

 

That all said, I'm assuming the issue is the webhook doesn't have a URL to send the uninstall request to and, since this is a required step in the reset, can't proceed without it.

 

If that is the issue, can I clear the "previous dev settings" from the first image? I've cleared Yarn's cache with no luck and I can't find a cache on the Partner's app portal to clear.

 

Is there any way I can do a clean reset of all dev settings with CLI 3, without deleting my app in the Partners portal?

Accepted Solution (1)
JohnFoxtrot
Shopify Partner
6 1 2

This is an accepted solution.

Thanks for the suggestion SBD, but the issue wasn't with the CLI itself, it was sometime to do with my app and web TOML configurations.

 

For anyone else trying to debug, the CLI structure documentation was helpful, but it could be more clear. I got more out of reverse engineering the Shopify App template for NodeJS.

View solution in original post

Replies 3 (3)

SBD_
Shopify Staff
1779 263 383

Hey @JohnFoxtrot 

 

The CLI team have asked if you can please create an issue here: https://github.com/Shopify/cli 

 

They'll be able to help better there.

Scott | Developer Advocate @ Shopify 

JohnFoxtrot
Shopify Partner
6 1 2

This is an accepted solution.

Thanks for the suggestion SBD, but the issue wasn't with the CLI itself, it was sometime to do with my app and web TOML configurations.

 

For anyone else trying to debug, the CLI structure documentation was helpful, but it could be more clear. I got more out of reverse engineering the Shopify App template for NodeJS.

SBD_
Shopify Staff
1779 263 383

Good to know, thanks for the update!

Scott | Developer Advocate @ Shopify