Open BaggioGiacomo opened 1 week ago
Since none haven't answered yet, I've taken a deeper look to the post authenticate task/webhooks installing process This is what happens:
ShopifyApp::WebhooksManagerJob
ShopifyAPI
library -> ShopifyAPI::Webhooks::Registry.register_all(session: session)
register_all
method takes all the keys from the @registry
variable and then register each topicMy question is, who is actually populating the @registry
variable? Isn't it empty?
I've seen that only the ShopifyApp::WebhooksManager.register_all
populates the @registry
but this method is only called by recreate_webhooks!
method
I hope to get an answer soon because the documentation doesn't explain this concept well and receiving support from the support team takes ages.
Thanks
Hi @BaggioGiacomo, thank you for opening this issue, the team will take a look.
Issue summary
Before opening this issue, I have:
shopify_app
version:22.2.1
3.3.0
macOS Sonoma 14.5
log_level: :debug
in my configuration, if applicableI've added the
app/uninstalled
webhook using the generator provided by this gem:rails g shopify_app:add_webhook --topic app/uninstalled --path webhooks/app_uninstalled
Here's the config on the
shopify_app.rb
file:app/jobs/app_uninstalled_job.rb
file has been created:When I run the app and install it on one store, the webhook isn't added to the webhooks scription. If I run this GraphQL query, I get an empty array:
Expected behavior
I expect all the webhooks I have on the
config.webhooks
to be always subscribed.Actual behavior
Sometimes the webhooks are not subscribed
Steps to reproduce the problem
rails g shopify_app:add_webhook --topic app/uninstalled --path webhooks/app_uninstalled
Logs
More context
solid-queue
as queue adapter