Skip to content

Sandbox not initialized error when processing GitHub repo via interactive CLI #64

@potranquito

Description

@potranquito

I ran into a problem when trying to use the homework-grader tool to process a GitHub repository. The CLI successfully fetched the GitHub URL from my connected Notion database, but failed during processing with the following error:

✗ Failed to process GitHub URL github.com/potranquito/wildlife-organization-tool: Error: Sandbox not initialized. Call initialize() first.

at SandboxService.cloneRepository (file:///.../sandbox-service.js:60:19)
at SandboxService.processGitHubUrl (file:///.../sandbox-service.js:267:43)
at file:///.../interactive-cli.js:193:73
at Array.map ()
at processGitHubUrls (file:///.../interactive-cli.js:177:57)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

At the end, it reports:

✓ Processing complete! Processed 1 repositories.
✓ Successful: 0
✗ Failed: 1
🧹 Cleaning up sandbox...
ℹ No sandbox to cleanup

Steps to reproduce:

  • Cloned the repo and installed dependencies following the README.
  • Connected environment variables (including ECB sandbox and Notion integration).
  • Ran the interactive CLI and selected the Notion database.
  • Selected a GitHub repo (github.com/potranquito/wildlife-organization-tool) for grading.
  • The CLI fetched the URL but failed to initialize the sandbox.

Actual behavior:
Fails with Sandbox not initialized. Call initialize() first. and exits without processing.

Additional context:

  • Happens whether I configure the ECB sandbox or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions