dagger / dagger

An engine to run your pipelines in containers

Home Page:https://dagger.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐞 dagger-sdk in rust returns garbage on errors

kjuulh opened this issue Β· comments

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}