We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee76e4 commit e9a3f34Copy full SHA for e9a3f34
examples/code-interpreter/src/index.ts
@@ -43,7 +43,7 @@ async function callCloudflareAPI(
43
44
async function executePythonCode(env: Env, code: string): Promise<string> {
45
const sandboxId = env.Sandbox.idFromName('default');
46
- const sandbox = getSandbox(env.Sandbox, sandboxId.toString());
+ const sandbox = getSandbox(env.Sandbox, sandboxId.toString().slice(0, 63));
47
const pythonCtx = await sandbox.createCodeContext({ language: 'python' });
48
const result = await sandbox.runCode(code, {
49
context: pythonCtx
0 commit comments