we-promise/sure · error · StandardError

Redbark provider is not configured

Error message

Redbark provider is not configured

What it means

Error "Redbark provider is not configured" thrown in we-promise/sure.

Source

Thrown at app/models/redbark_item.rb:46

  scope :needs_update, -> { where(status: :requires_update) }

  def syncer
    RedbarkItem::Syncer.new(self)
  end

  # Deliberately not transactional - the job must enqueue after the flag commits
  def destroy_later
    update!(scheduled_for_deletion: true)
    DestroyJob.perform_later(self)
  end


  # Import data from provider API
  def import_latest_redbark_data(sync: nil)
    provider = redbark_provider
    unless provider
      Rails.logger.error "RedbarkItem #{id} - Cannot import: provider is not configured"
      raise StandardError, I18n.t("redbark_items.errors.provider_not_configured")
    end

    RedbarkItem::Importer.new(self, redbark_provider: provider, sync: sync).import
  rescue => e
    DebugLogEntry.capture(
      category: "provider_sync",
      level: "error",
      message: "Redbark import failed",
      source: self.class.name,
      provider_key: "redbark",
      family: family,
      metadata: { redbark_item_id: id, error_class: e.class.name, error: e.message }
    )
    Rails.logger.error "RedbarkItem #{id} - Failed to import data: #{e.message}"
    raise
  end

  # Process linked accounts after data import

View on GitHub (pinned to e69894adb9)

When it happens

Trigger: Thrown at app/models/redbark_item.rb:46 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of we-promise/sure@e69894adb9 (2026-08-21). Data as JSON: /api/errors/59b19a679d98cd2c. Report an issue: GitHub.