{"record":{"id":"054b7c6799ef1601","repo":"n8n-io/n8n","slug":"instance-ai-runtime-workspace-has-no-sandbox","errorCode":null,"errorMessage":"Instance AI runtime workspace has no sandbox.","messagePattern":"Instance AI runtime workspace has no sandbox\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/workspace/lazy-runtime-workspace.ts","lineNumber":153,"sourceCode":"\t\t\tawait this.workspaceDestroyPromise;\n\t\t} finally {\n\t\t\tthis.workspaceDestroyPromise = undefined;\n\t\t}\n\t}\n\n\tasync getFilesystem(): Promise<WorkspaceFilesystem> {\n\t\tconst filesystem = (await this.getWorkspace()).filesystem;\n\t\tif (!filesystem) {\n\t\t\tthrow new Error('Instance AI runtime workspace has no filesystem.');\n\t\t}\n\n\t\treturn filesystem;\n\t}\n\n\tasync getSandbox(): Promise<WorkspaceSandbox> {\n\t\tconst sandbox = (await this.getWorkspace()).sandbox;\n\t\tif (!sandbox) {\n\t\t\tthrow new Error('Instance AI runtime workspace has no sandbox.');\n\t\t}\n\n\t\treturn sandbox;\n\t}\n\n\tprivate setResolvedWorkspace(workspace: Workspace | undefined): void {\n\t\tthis.resolvedWorkspace = workspace;\n\t\tif (!workspace) return;\n\n\t\tfor (const listener of this.resolvedListeners) {\n\t\t\tlistener(workspace);\n\t\t}\n\t}\n\n\tprivate notifyDestroyed(): void {\n\t\tfor (const listener of this.destroyedListeners) {\n\t\t\tlistener();\n\t\t}","sourceCodeStart":135,"sourceCodeEnd":171,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/workspace/lazy-runtime-workspace.ts#L135-L171","documentation":"Error \"Instance AI runtime workspace has no sandbox.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/workspace/lazy-runtime-workspace.ts:153 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-12T13:17:24.610Z"}