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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 dagger-sdk in rust returns garbage on errors #7190

Open
kjuulh opened this issue Apr 25, 2024 · 0 comments
Open

馃悶 dagger-sdk in rust returns garbage on errors #7190

kjuulh opened this issue Apr 25, 2024 · 0 comments
Labels
kind/bug Something isn't working sdk/rust

Comments

@kjuulh
Copy link
Contributor

kjuulh commented Apr 25, 2024

What is the issue?

On errors the dagger-rust sdk doesn't understand how to parse the errors from the graphql endpoint

Dagger version

dagger v0.10.2

Steps to reproduce

Simply get a rust dagger program to crash

Log output

Error: failed to query dagger engine: http error: Failed to parse response: Error("invalid type: sequence, expected a string", line: 1, column: 211). The response body is: {"errors":[{"message":"resolve: container: withFile: withExec: withEntrypoint: withExec: stdout: process \"sample-app -h\" did not complete successfully: exit code: 125","extensions":{"_type":"EXEC_ERROR","cmd":["sample-app","-h"],"exitCode":125,"stderr":"","stdout":""}},{"message":"resolve: container: withFile: withExec: withEntrypoint: withExec: stdout: process \"sample-app -h\" did not complete successfully: exit code: 125"}],"data":null}
@kjuulh kjuulh added kind/bug Something isn't working sdk/rust labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working sdk/rust
Projects
None yet
Development

No branches or pull requests

1 participant