Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having issues with creating bash #76

Open
Mng-dev-ai opened this issue Mar 9, 2025 · 0 comments
Open

Having issues with creating bash #76

Mng-dev-ai opened this issue Mar 9, 2025 · 0 comments

Comments

@Mng-dev-ai
Copy link

Mng-dev-ai commented Mar 9, 2025

When I tried running the example below from the documentation, the output simply echoed back my input command (echo 'Hello, world!') rather than displaying the expected response. Additionally, I frequently encounter that error
Error executing command: Error: Pitcher message shell/in timed out

Note: I don't get any issues when i use sandbox.shells.run directly, all issues occur when i create a new shell

const sandbox = await sdk.sandbox.create();
 
// Create a new shell (bash is default)
const shell = sandbox.shells.create('bash');
 
// Listen to shell output
const shellListenDisposer = shell.onOutput((output) => {
  console.log(output);
});
 
// Send commands to the shell
await shell.write("echo 'Hello, world!'");
 
// Kill the shell when done
await shell.kill();
 
// Dispose the listener when done
shellListenDisposer.dispose();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant