Skip to content

Webhooks are not being registered #1940

@jagthedrummer

Description

@jagthedrummer

Issue summary

Before opening this issue, I have:

  • Upgraded to the latest version of the package
    • shopify_app version: 22.5.1
    • Ruby version: 3.4.1
    • Operating system: MacOS & Linux
  • Set log_level: :debug in my configuration, if applicable
  • Found a reliable way to reproduce the problem that indicates it's a problem with the package
  • Looked for similar issues in this repository
  • Checked that this isn't an issue with a Shopify API

Webhooks that I've configured in config/initializers/shopify_app.rb are not being registered.

I have a block like this:

  config.webhooks = [
    {topic: 'app/uninstalled', address: "#{ENV['SHOPIFY_APP_BASE']}/webhooks/app_uninstalled", format: 'json'},
    {topic: 'customers/data_request', address: "#{ENV['SHOPIFY_APP_BASE']}/webhooks/customers_data_request", format: 'json'},
    {topic: 'customers/redact', address: "#{ENV['SHOPIFY_APP_BASE']}/webhooks/customers_redact", format: 'json'},
    {topic: 'orders/create', address: "#{ENV['SHOPIFY_APP_BASE']}/webhooks/orders_create", format: 'json'},
    {topic: 'shop/redact', address: "#{ENV['SHOPIFY_APP_BASE']}/webhooks/shop_redact", format: 'json'},
    {topic: 'shop/update', address: "#{ENV['SHOPIFY_APP_BASE']}/webhooks/shop_updated", format: 'json'},
    {topic: 'themes/update', address: "#{ENV['SHOPIFY_APP_BASE']}/webhooks/theme_updated", format: 'json'}
  ]

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

  1. Configure some webhooks in config.webhooks
  2. Install the app in a shop
  3. Notice that webhooks are not registered

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions