{"record":{"id":"e0f652f50c8ad229","repo":"n8n-io/n8n","slug":"failed-to-read-resourcelabel-options-tolowercas","errorCode":null,"errorMessage":"Failed to read ${resourceLabel(options).toLowerCase()} \"${filePath}\": ${formatErrorForLog(error)}","messagePattern":"Failed to read (.+?) \"(.+?)\": (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/workspace/workspace-files.ts","lineNumber":80,"sourceCode":"\tconst readFile = filesystem?.readFile;\n\tif (filesystem && readFile) {\n\t\ttry {\n\t\t\treturn decodeWorkspaceFileContent(\n\t\t\t\tawait retryTransientSandboxIo(\n\t\t\t\t\t// .call preserves the provider's `this` binding (e.g. LazyRuntimeFilesystem).\n\t\t\t\t\tasync () =>\n\t\t\t\t\t\tawait readFile.call(filesystem, filePath, {\n\t\t\t\t\t\t\tencoding: 'utf-8',\n\t\t\t\t\t\t\tabortSignal: options?.abortSignal,\n\t\t\t\t\t\t}),\n\t\t\t\t\tfilePath,\n\t\t\t\t\toptions,\n\t\t\t\t),\n\t\t\t);\n\t\t} catch (error) {\n\t\t\t// A provider failure is not a missing file — surface it instead of reporting null.\n\t\t\tif (isTransientSandboxIoError(error)) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Failed to read ${resourceLabel(options).toLowerCase()} \"${filePath}\": ${formatErrorForLog(error)}`,\n\t\t\t\t\t{ cause: error },\n\t\t\t\t);\n\t\t\t}\n\t\t\toptions?.logger.debug(`${resourceLabel(options)} filesystem read missed`, {\n\t\t\t\tpath: filePath,\n\t\t\t\terror: formatErrorForLog(error),\n\t\t\t});\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tif (!workspace.sandbox) return null;\n\n\ttry {\n\t\treturn await readFileViaSandbox(workspace, filePath, options);\n\t} catch (error) {\n\t\tif (isTransientSandboxIoError(error)) {","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/workspace/workspace-files.ts#L62-L98","documentation":"Error \"Failed to read ${resourceLabel(options).toLowerCase()} \"${filePath}\": ${formatErrorForLog(error)}\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/workspace/workspace-files.ts:80 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":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}