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

Offer a descriptive error message when an actor-to-actor call fails #628

Closed
brooksmtownsend opened this issue Sep 6, 2023 · 2 comments
Closed

Comments

@brooksmtownsend
Copy link
Member

When using an actor that receives an HTTP request and attempts to call an actor, I get an opaque error when I accidentally used the wrong call alias. Here's my logs:

2023-09-06T16:34:39.341670Z ERROR handle_message: wasmcloud_host::wasmbus: failed to handle request origin=WasmCloudEntity { public_key: "VAG3QITQQ2ODAOWB5TTQSDJ53XK3SHBEIFNK4AYJ5RKAX2UNSCAPHA5M", link_name: "default", contract_id: "wasmcloud:httpserver" } target=WasmCloudEntity { public_key: "MBVNZVL5WBY52WXFTNQJOZBRJWL63LXZKT7PT3PJ2SXLYILVATA57QCY", link_name: "", contract_id: "" } operation="HttpServer.HandleRequest" invocation_id="f2ecce7cac6948b39eddff4afa701b0d" e=Guest call failed for method HttpServer.HandleRequest: Host send error failed to call `wasmcloud:bus/host.call`
2023-09-06T16:34:39.341926Z ERROR wasmbus_rpc::rpc_client: rpc error response error=Guest call failed for method HttpServer.HandleRequest: Host send error failed to call `wasmcloud:bus/host.call`
2023-09-06T16:34:39.341936Z  WARN httpserver: actor responded with error error=rpc: Guest call failed for method HttpServer.HandleRequest: Host send error failed to call `wasmcloud:bus/host.call`
2023-09-06T16:34:39.341943Z ERROR wasmcloud_provider_httpserver: Error sending HttpRequest to actor error=rpc: Guest call failed for method HttpServer.HandleRequest: Host send error failed to call `wasmcloud:bus/host.call`
2023-09-06T16:34:39.341949Z ERROR warp::filters::trace: unable to process request (internal error) status=500 error=None

You can see I'm handling an HTTP request, and in this specific case I'm trying to call an actor call alias that does not exist. I think we should be able to denote that the call alias was missing.

@connorsmith256
Copy link
Contributor

Note this isn't specific to A2A calls. The same error

Host send error failed to call `wasmcloud:bus/host.call

Is printed for failed actor -> provider invocations

@brooksmtownsend
Copy link
Member Author

Fixed by #630

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

2 participants