laravel-shopify: Problem reinstalling, but no error logs
For bug reporting only! If you’re posting a feature request or discussion, please ignore.
Expected Behavior
The (re)installation should proceed smoothly
Current Behavior
App was installed on this shop before. It was uninstalled and now trying to re-install again. But the reinstalling keeps failing and returning to the install screen.
Failure Information
There are no error logs in laravel.log
Steps to Reproduce
~Unknown, it has happened more than once and can be quite hard to reproduce~
If users.deleted_at remains as null for whatever reasons when the app is uninstalled, this problem will surface
deleted_at only gets a value when Shopify’s uninstall webhook succeeds, but webhooks can fail.
- Disable all webhooks in the shopify app (to simulate that Shopify has stopped retrying and all webhooks have failed)
- Install the app
- Uninstall the app (with webhooks disabled,
users.deleted_atremains asnull) - Reinstall the app - unable to, leads to 404 on shopify backend
Hope this can be addressed.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
- Package Version: v19.0.0
- Laravel Version: v8.83.27
- PHP Version: v8.1.27
- Template Engine: Blade
- Using a toolset (Docker, Laradock, Vagrant, etc.): n/a
Investigation to find a solution
Triggered javascript breakpoints
-
/authenticate<=auth/full.blade.php -
click INSTALL
-
/token<=layouts/default.blade.php, beforecreateApp -
/token?embedded=1<=layouts/default.blade.php, beforecreateApp -
/token?embedded=1<=token_handler.blade.php -
/billing<=billing/full.blade.php -
click APPROVE
-
/token<=layouts/default.blade.php, beforecreateApp -
/token?embedded=1<=layouts/default.blade.php, beforecreateApp -
/token?embedded=1<=token_handler.blade.php.php -
/<=layouts/default.blade.php, beforecreateApp -
click UNINSTALL
-
click INSTALL
-
/token<=layouts/default.blade.php, beforecreateApp -
404
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 47 (39 by maintainers)
Hey @bilogic
I think I have a solve for this, going to try and wrap it up by next week as I want to release it with some of the other PRs that are in master now.
Thanks for your paitence on this, just been trying to find the time to tackle it with enough time to focus on it
You have to delete in the db the row of the user or launch the job with : php artisan queue:work --daemon
That will listen the deletion webhook and then, delete the user
Hi @Kyon147 did you already fix it?
Getting this page forever for the Shopify store whose uninstall webhook failed for any reason.
Hey @bilogic
Apologies, new dad life, work and many other projects just sucking up all my time.
I’ll try and get a PR out this weekend for you 👍
Thanks for being patient with me
Hello @Kyon147 @bilogic, I’ve created a new issue. Please feel free to take a look when you have a moment #Issue_298