Shopify / Shopify/shopify_app

Missing WebhookHandler

Open
#1,977 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
1.9k
Forks
739
Avg merge
21h 2m
Merged PRs (30d)
1

Description

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.)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the documented declarative webhook flow in docs/shopify_app/webhooks.md and reproduce the shopify_app:add_declarative_webhook command for carts/update. Trace how the generated controller and job are discovered when the CLI sends the webhook; done means the topic is handled without ShopifyAPI::Errors::NoWebhookHandler and the documentation matches the working flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.