CanineHQ/canine · error · Error
Failed to search resources
Error message
Failed to search resources
What it means
Error "Failed to search resources" thrown in CanineHQ/canine.
Source
Thrown at app/javascript/controllers/team_resource_search_controller.js:20
export default class extends AsyncSearchDropdownController {
static values = {
url: String,
addUrl: String,
resourceType: String,
turboFrame: String
}
async fetchResults(query) {
const url = `${this.urlValue}.json?q=${encodeURIComponent(query)}`
const response = await fetch(url, {
headers: {
'Accept': 'application/json'
}
})
if (!response.ok) {
throw new Error('Failed to search resources')
}
return await response.json()
}
renderItem(resource) {
return `
<div class="flex items-center gap-3 px-2 py-2">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">${this.escapeHtml(resource.name)}</div>
</div>
</div>
`
}
async onItemSelect(resource, itemElement) {
try {
itemElement.classList.add('opacity-50')View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/javascript/controllers/team_resource_search_controller.js:20 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23).
Data as JSON: /api/errors/8f0034a051478afd.
Report an issue: GitHub.