{"record":{"id":"45802166bb10cefb","repo":"balderdashy/sails","slug":"e-unknown-bind-error","errorCode":"E_UNKNOWN_BIND_ERROR","errorMessage":"Error attempting to bind `${verb || 'ALL'} ${path}` to ${JSON.stringify(target)}: ${e.message}","messagePattern":"Error attempting to bind `(.+?) (.+?)` to (.+?): (.+?)","errorType":"error_code","errorClass":"sailsError","httpStatus":null,"severity":"error","filePath":"lib/router/bind.js","lineNumber":135,"sourceCode":"}\n\n/**\n * Bind a previously-loaded action to a URL.\n * (which should be a URL or redirectable path.)\n *\n * @api private\n */\nfunction bindAction(path, target, verb, options) {\n\n  var self = this;\n\n  var sails = this.sails;\n\n  var actionIdentity;\n  try {\n    actionIdentity = self.getActionIdentityForTarget(target);\n  } catch (e) {\n    throw flaverr({name: e.name || 'sailsError', code: e.code || 'E_UNKNOWN_BIND_ERROR'}, new Error('Error attempting to bind `' + (verb || 'ALL') + ' ' + path + '` to ' + JSON.stringify(target) + ': ' + e.message));\n  }\n\n  if (_.isObject(target)) {\n    // Fold any other properties in the target into a shallow clone of the \"options\" dictionary\n    options = _.extend({}, options, _.omit(target, 'action'));\n  }\n\n  // If there's no loaded action with that identity, log a warning and continue.\n  if (!sails._actions[actionIdentity]) {\n    sails.log.warn('Ignored attempt to bind route (' + path + ') to unknown action ::', target);\n    return;\n  }\n\n  // Add \"action\" property to the route options, and set the _middlewareType property if the function doesn't already have one.\n  _.extend(options || {}, {action: actionIdentity, _middlewareType: (sails._actions[actionIdentity] && sails._actions[actionIdentity]._middlewareType || 'ACTION: ' + actionIdentity)});\n\n  // Loop through all of the registered action middleware, and find\n  // any that should apply to the action with the given identity.","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/balderdashy/sails/blob/7b76422cc27823df033572bdda5c4910a68b697f/lib/router/bind.js#L117-L153","documentation":"Error \"Error attempting to bind `${verb || 'ALL'} ${path}` to ${JSON.stringify(target)}: ${e.message}\" thrown in balderdashy/sails.","triggerScenarios":"Thrown at lib/router/bind.js:135 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":"7b76422cc27823df033572bdda5c4910a68b697f","analyzedAt":"2026-09-01T04:01:57.104Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}