-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhooks are not being registered #1940
Comments
I think it has all moved to shopify.toml file with shopify managed scopes. |
@uurcank I'm not finding anything in the changelog saying that webhooks won't be registered anymore, and the docs still describe using them: https://github.com/Shopify/shopify_app/blob/main/docs/shopify_app/webhooks.md#manage-shop-specific-webhooks-using-shopifyappwebhooksmanager |
How did you add the webhook? rails g shopify_app:add_webhook --topic carts/update --path webhooks/carts_update |
@remy727 I honestly don't remember how I added them. This is in an app that I've been running for a while and I just noticed that somewhere along the way it stopped registering webhooks. If I manually register the webhooks they work as expected, so it's not a problem with file paths or namespaces or any of the other magic bits that this gem provides. It's just that the automatic registration from the config isn't happening. |
Hi 👋 I was not able to reproduce this on my side using the Shopify App Template Ruby, and setting up API webhooks in the config object. My webhook subscription was successfully created. It may be helpful for debugging to take a look at this commit, it is showing the code required in the It may also be helpful to review the logs from your app after install.
|
We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue. We appreciate your understanding as we try to manage our number of open issues. |
It turns out that this was related to having to deal with the premature removal of the And the bot auto-closing issues after only one week feels even more hostile. Please disable that thing. |
Also, the bot says this:
But reopening auto-closed issues doesn't seem to be allowed. |
Hey @jagthedrummer, im having the same issue with webhooks not auto registering in the shop. How did you solve this? I just created a new app using shopify_app gem. |
@vjnunez I ended up writing custom code to register the webhooks manually and added it to the class that I registered as |
Issue summary
Before opening this issue, I have:
shopify_app
version: 22.5.1log_level: :debug
in my configuration, if applicableWebhooks that I've configured in
config/initializers/shopify_app.rb
are not being registered.I have a block like this:
But none of those webhooks are registered when a new shop installs.
Expected behavior
The webhooks should be registered.
Actual behavior
The webhooks are not registered.
Steps to reproduce the problem
config.webhooks
The text was updated successfully, but these errors were encountered: