CanineHQ/canine · error · Error
Failed to add resource
Error message
Failed to add resource
What it means
Error "Failed to add resource" thrown in CanineHQ/canine.
Source
Thrown at app/javascript/controllers/team_resource_search_controller.js:59
<span class="loading loading-spinner loading-sm"></span>
<span>Adding ${this.escapeHtml(resource.name)}...</span>
</div>
`
const response = await fetch(this.addUrlValue, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRF-Token': this.getCsrfToken()
},
body: JSON.stringify({
resourceable_type: this.resourceTypeValue,
resourceable_id: resource.id
})
})
if (!response.ok) {
throw new Error('Failed to add resource')
}
// Close the modal
const modal = this.element.closest('dialog')
if (modal) {
modal.close()
}
// Reload the turbo frame
if (this.hasTurboFrameValue) {
const frame = document.getElementById(this.turboFrameValue)
if (frame) {
frame.reload()
}
} else {
window.location.reload()
}
} catch (error) {View on GitHub (pinned to ba4ee3968d)
When it happens
Trigger: Thrown at app/javascript/controllers/team_resource_search_controller.js:59 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/c7a0d31cbda8cef9.
Report an issue: GitHub.