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: invoke panics with invalid return type when I expect a return type of Vec<u8> for Bytes #59

Closed
Tracked by #57
krisbitney opened this issue Apr 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@krisbitney
Copy link
Contributor

I expect a return type of Bytes, but invoke panics when using Vec<u8>. It is unclear what the return type should be.

let response = client.invoke::<Vec<u8>>(
        &uri,
        "bytesMethod",
        Some(&msgpack!({
            "arg": {
                "prop": "Argument Value".as_bytes().to_vec(),
            },
        })),
        None,
        None
    ).unwrap();
---- bytes_test_case stdout ----
URIS: []
thread 'bytes_test_case' panicked at 'called `Result::unwrap()` on an `Err` value: InvokeError("Failed to decode result: `invalid type: byte array, expected a sequence`")', packages/client/tests/tests-type-cases.rs:250:7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants