Luca Bertelli
Luca Bertelli
PR #1014 improves the error message for such errors, see https://github.com/dfinity/agent-js/pull/1014/files#diff-8e88073ceeb119a7b39f3e6616db4c23f5d3c0e923c194f1f0e5a1a6d54f5835R531. After the new version is released, you can try the call again, and hopefully you'll be able to debug...
@lenny0x can you try checking if the issue is still there and if you can debug it better with [@dfinity/[email protected]](https://www.npmjs.com/package/@dfinity/agent/v/3.0.0-beta.1)?
> yarn add [email protected] > > Downgrading the package work as a temporary fix till the issue is fixed Worked for me!
The issue seems to be related to the fact that we infer the type of `vec` inner elements [only by looking at the first element](https://github.com/dfinity/candid/blob/b571cd5e7f85cb6e56656447c17e15bcf8ea5a27/rust/candid/src/types/value.rs#L334). Fixing this can be difficult,...