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

parse invocation errors as strings #607

Merged

Conversation

connorsmith256
Copy link
Contributor

Feature or Problem

When detecting host call errors, the NIF is returning the raw bytes from the error. Now we parse as a string before returning

Related Issues

Fixes #606

Release Information

Next

Consumer Impact

Much more clear error messages on host calls

Testing

Manual Verification

Tested manually with make run:

  • started the HTTP server provider
  • started the XKCD actor
  • linked them
  • invoked the XKCD actor, which tries to call the HTTP client provider. This isn't running, so the host generates an error, which is now parsed as a string:
{"error":"actor: sending req: Host send error Host call function failed: Invocation not authorized: missing link definition for wasmcloud:httpclient on default"}

Signed-off-by: Connor Smith <connor.smith.256@gmail.com>
@connorsmith256 connorsmith256 merged commit 8998ac7 into wasmCloud:main Apr 10, 2023
11 checks passed
@connorsmith256 connorsmith256 deleted the fix/parse-invocation-error branch April 10, 2023 16:42
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.

[BUG] capability provider stuck at the Awaiting state
3 participants