{"record":{"id":"b8050a03122d1035","repo":"overleaf/overleaf","slug":"this-feature-is-not-enabled-on-your-account","errorCode":null,"errorMessage":"This feature is not enabled on your account","messagePattern":"This feature is not enabled on your account","errorType":"http","errorClass":"FeatureNotAvailableError","httpStatus":400,"severity":"error","filePath":"services/web/app/src/Features/LinkedFiles/LinkedFilesController.mjs","lineNumber":248,"sourceCode":"          `Your URL could not be reached (${\n            error.info?.status || error.cause?.info?.status\n          } status code). Please check it and try again.`\n        )\n      }\n    } else if (error instanceof InvalidUrlError) {\n      res.status(422)\n      plainTextResponse(\n        res,\n        'Your URL is not valid. Please check it and try again.'\n      )\n    } else if (error instanceof NotOriginalImporterError) {\n      res.status(400)\n      plainTextResponse(\n        res,\n        'You are not the user who originally imported this file'\n      )\n    } else if (error instanceof FeatureNotAvailableError) {\n      res.status(400)\n      plainTextResponse(res, 'This feature is not enabled on your account')\n    } else if (error instanceof RemoteServiceError) {\n      if (error.info?.statusCode === 403) {\n        res.status(400).json({ relink: true })\n      } else {\n        res.status(502)\n        plainTextResponse(res, 'The remote service produced an error')\n      }\n    } else if (error instanceof FileCannotRefreshError) {\n      res.status(400)\n      plainTextResponse(res, 'This file cannot be refreshed')\n    } else if (error.message === 'project_has_too_many_files') {\n      res.status(400)\n      plainTextResponse(res, 'too many files')\n    } else if (/\\bECONNREFUSED\\b/.test(error.message)) {\n      res.status(500)\n      plainTextResponse(res, 'Importing references is not currently available')\n    } else if (error instanceof FileTooLargeError) {","sourceCodeStart":230,"sourceCodeEnd":266,"githubUrl":"https://github.com/overleaf/overleaf/blob/28ad3b03b71cb4311decdcb55c36b33ec10d72db/services/web/app/src/Features/LinkedFiles/LinkedFilesController.mjs#L230-L266","documentation":"Branch of LinkedFilesController.handleError mapping FeatureNotAvailableError to 400: the linked-file provider/feature being used is not enabled for this user's account (e.g. feature-gated integration such as Zotero/Mendeley on unsupported plans).","triggerScenarios":"Thrown at services/web/app/src/Features/LinkedFiles/LinkedFilesController.mjs:248 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable the feature on the account or upgrade the plan","Use a supported linked-file provider"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"28ad3b03b71cb4311decdcb55c36b33ec10d72db","analyzedAt":"2026-09-03T02:10:22.807Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T07:17:11.731Z"}