{"record":{"id":"b7a9c6e8e966aab4","repo":"we-promise/sure","slug":"questrade-provider-is-not-configured","errorCode":null,"errorMessage":"Questrade provider is not configured","messagePattern":"Questrade provider is not configured","errorType":"exception","errorClass":"StandardError","httpStatus":null,"severity":"error","filePath":"app/models/questrade_item.rb","lineNumber":57,"sourceCode":"  # Override syncing? to include background activities fetch\n  def syncing?\n    super || questrade_accounts.where(activities_fetch_pending: true).exists?\n  end\n\n  # Import data from provider API\n  def import_latest_questrade_data(sync: nil)\n    provider = questrade_provider\n    unless provider\n      DebugLogEntry.capture(\n        category: \"provider_sync_error\",\n        level: \"error\",\n        message: \"Cannot import: Questrade provider is not configured\",\n        source: self.class.name,\n        provider_key: \"questrade\",\n        family: family,\n        metadata: { questrade_item_id: id }\n      )\n      raise StandardError, I18n.t(\"questrade_items.errors.provider_not_configured\")\n    end\n\n    QuestradeItem::Importer.new(self, questrade_provider: provider, sync: sync).import\n  rescue => e\n    DebugLogEntry.capture(\n      category: \"provider_sync_error\",\n      level: \"error\",\n      message: \"Failed to import data\",\n      source: self.class.name,\n      provider_key: \"questrade\",\n      family: family,\n      metadata: { questrade_item_id: id, error_class: e.class.name, error_message: e.message }\n    )\n    raise\n  end\n\n  # Process linked accounts after data import\n  def process_accounts","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/we-promise/sure/blob/e69894adb92547273377398c15f45c979cd9416a/app/models/questrade_item.rb#L39-L75","documentation":"Error \"Questrade provider is not configured\" thrown in we-promise/sure.","triggerScenarios":"Thrown at app/models/questrade_item.rb:57 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e69894adb92547273377398c15f45c979cd9416a","analyzedAt":"2026-08-21T18:22:41.165Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}