Skip to content

files.list/read fails on idle boxes without auto-wake #116

@enesakar

Description

@enesakar

Description

When a box goes idle after a period of inactivity, file access operations (files.list, files.read) fail immediately instead of automatically waking the box first.

This is a specific case of #110 — while that issue covers snapshots, this one is about basic file I/O on idle boxes.

Steps to reproduce

  1. Create a box and write files to it
  2. Wait for the box to become idle
  3. Call box.files.list(path) or box.files.read(path)

Expected behavior

File operations should transparently wake the box before executing, so the caller doesn't need to handle idle state.

Actual behavior

files.list returns "Failed to list files" error. files.read similarly fails.

Current workaround

Running box.exec.command('pwd') before any file access to force a wake-up:

const box = await Box.get(id, { apiKey });
await box.exec.command('pwd'); // wake up idle box
const files = await box.files.list(path); // now works

Ideally the SDK should handle this internally so consumers don't need this workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions