sprite = Sprites.sprite(client, "SPRITENAME")
{output, exit_code} = Sprites.cmd(sprite, "echo", ["hello"])
** (RuntimeError) Command failed: :closed
(sprites 0.1.0) lib/sprites/command.ex:569: Sprites.Command.collect_output/4
iex:7: (file)
{output, code} = Sprites.cmd(sprite, "ls", ["-la"],
dir: "/app",
env: [{"FOO", "bar"}],
timeout: 30_000,
stderr_to_stdout: true
)
** (RuntimeError) Command failed: :closed
(sprites 0.1.0) lib/sprites/command.ex:569: Sprites.Command.collect_output/4
iex:7: (file)
{output, code} = Sprites.cmd(sprite, "bash", ["-c", "tty"],
tty: true,
tty_rows: 24,
tty_cols: 80
)
** (RuntimeError) Command failed: :closed
(sprites 0.1.0) lib/sprites/command.ex:569: Sprites.Command.collect_output/4
iex:7: (file)
I was excited to try this SDK but maybe I was too early? In any case I wanted to report this just in case.
Summary
Sprites.cmd(sprite, "echo", ["hello"])consistently fails withCommand failed: :closed. Thedrain_pending_frames/1fix on thefeature/control-modebranch does not resolve this.Environment
Reproduction
I was excited to try this SDK but maybe I was too early? In any case I wanted to report this just in case.