Skip to content

Missing WebhookHandler #1977

@danielfriis

Description

@danielfriis

Hey,

I'm trying to set up Webhooks, following the documentation:
https://github.com/Shopify/shopify_app/blob/main/docs/shopify_app/webhooks.md#consuming-app-specific-webhooks-events

It seems that the recommended approach is to update shopify.app.toml and then run:

rails g shopify_app:add_declarative_webhook --topic carts/update --path webhooks/carts_update

For any Webhook to subscribe to, which according to the documentation should set up a controller and a job.

When I run a test Webhook via the CLI, I get this error though:

ShopifyAPI::Errors::NoWebhookHandler (No webhook handler found for topic: carts/update.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions