-
Notifications
You must be signed in to change notification settings - Fork 476
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
Register webhook manually #1259
Comments
Hi there 👋 Just a couple of things to double check here
|
@lizkenyon, thank you for your reply.
|
How can I reload ShopifyAPI::Webhooks::Registry? In your apps boot up code you will need to have code that adds your handlers to your registry. You can see an example in the ruby template that uses a helper from shopify_app gem. |
Aha got it. I am already using that ruby template. |
👍 Hope that resolves that for you. If you have any suggestions/a PR on how we could clarify this in the documentation I would love to hear it. Thanks! 😄 |
Hi @remy727, did you manage to figure it out? I am having the same issue:
# Here the @registry is only the one I set in the `config.webhooks` not including the new registration
handler = @registry[request.topic]&.handler
# This error is then raised
unless handler
raise Errors::NoWebhookHandler, "No webhook handler found for topic: #{request.topic}."
end |
Issue summary
I want to register orders/fulfilled webhook for one of my public app customers.
I was able to register the webhook and confirmed it was added.
But I am getting ShopifyAPI::Errors::NoWebhookHandler (No webhook handler found for topic: orders/fulfilled error when running the below code.
shopify_api
version: 13.2.0Expected behavior
Handles
orders/fulfilled
webhookActual behavior
No webhook handler found for topic: orders/fulfilled
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: