You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the app receives a call to an endpoint like "/api/webhooks/shop_redact"
it is routed to the WebhooksController and since this topic is not registered, a ShopifyAPI::Errors::NoWebhookHandler is raised.
shopify_api version: 13.3.0
shopify_app version: 21.7.0
Ruby version: 3.0.6
Operating system: Ubuntu 22.04.2
def add_registrations
return unless ShopifyApp.configuration.has_webhooks?
ShopifyApp::Logger.debug("Adding registrations to webhooks")
ShopifyApp.configuration.webhooks.each do |attributes|
webhook_path = path(attributes)
delivery_method = attributes[:delivery_method] || :http
ShopifyAPI::Webhooks::Registry.add_registration(
topic: attributes[:topic],
delivery_method: delivery_method,
path: webhook_path,
handler: delivery_method == :http ? webhook_job_klass(webhook_path) : nil,
fields: attributes[:fields],
)
end
end
Expected behavior
WebhooksController should handle the call and queue the corresponding job as for other webhooks.
Issue summary
When the app receives a call to an endpoint like "/api/webhooks/shop_redact"
it is routed to the WebhooksController and since this topic is not registered, a ShopifyAPI::Errors::NoWebhookHandler is raised.
shopify_api
version: 13.3.0shopify_app
version: 21.7.0Expected behavior
WebhooksController should handle the call and queue the corresponding job as for other webhooks.
Actual behavior
Steps to reproduce
The text was updated successfully, but these errors were encountered: