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

CLI UI: do not print stacktrace if 'open' command is not available #594

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

nicoloboschi
Copy link
Member

@nicoloboschi nicoloboschi commented Oct 16, 2023

Fix this bad stacktrace

/langstream-agents-text-processing-0.2.0-nar.nar to /tmp/nar281146335772970230/langstream-agents-text-processing-0.2.0-nar.nar.dir
Exception in thread "pool-2-thread-1" java.io.IOException: Cannot run program "open": error=2, No such file or directory
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
        at ai.langstream.cli.commands.applications.UIAppCmd.startServer(UIAppCmd.java:168)
        at ai.langstream.cli.commands.docker.LocalRunApplicationCmd.startUI(LocalRunApplicationCmd.java:385)
        at ai.langstream.cli.commands.docker.LocalRunApplicationCmd.lambda$executeOnDocker$2(LocalRunApplicationCmd.java:348)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: error=2, No such file or directory
        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
        ... 7 more

@nicoloboschi nicoloboschi merged commit 99ebfc3 into main Oct 16, 2023
9 checks passed
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
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

Successfully merging this pull request may close these issues.

1 participant