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

[BUG] Failed to decode the field #407

Open
shekohex opened this issue Oct 25, 2024 · 1 comment
Open

[BUG] Failed to decode the field #407

shekohex opened this issue Oct 25, 2024 · 1 comment
Assignees
Labels
bug 🪲 Something isn't working p0 🔥 Critical issues that need to be resolved immediately

Comments

@shekohex
Copy link
Contributor

I get the following error when trying the hello world blueprint.

 INFO gadget: Pre-processing event for sid/bid = 0/0 ...
 INFO gadget: Pre-processing event for sid/bid = 0/0 ...
 INFO gadget: Pre-processing event for sid/bid = 0/0 ...
 INFO gadget: Found actionable event for sid/bid = 0/0 ...
thread 'tokio-runtime-worker' panicked at src/lib.rs:17:1:
Failed to decode the field
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ERROR gadget: An Event Handler for SayHelloEventHandler has stopped running
ERROR gadget: Job 0 exited prematurely
Error: Other("Error in Event Handler for SayHelloEventHandler: RecvError(())")

Steps

  1. Create the blueprint using the blueprint template
  2. Build and deploy the blueprint using tangle cli
  3. Register on the blueprint using any account (ex //Bob)
  4. Request an instance using another account (ex //Charlie)
  5. Approve the request from Bob
  6. Dispatch a job call for job#0 without any parameters using Charlie
  7. you will get the above error.

Expected

When I get invalid job args, or empty, the worker should not stop and instead recover gracefully without panicking!

@shekohex shekohex added the bug 🪲 Something isn't working label Oct 25, 2024
@shekohex
Copy link
Contributor Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working p0 🔥 Critical issues that need to be resolved immediately
Projects
Status: Planning 🗺️
Development

No branches or pull requests

2 participants