The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
When trying to use the IOTA SDK (version @iota/sdk@^2.0.0-alpha.1) in a TypeScript/Node.js project, an error occurs indicating that the http2 feature is not enabled. This issue prevents the successful execution of the code that relies on the IOTA SDK.
The IOTA SDK should be able to make HTTP requests and communicate with the IOTA network without encountering the "http2 feature is not enabled" error. The code should execute successfully, allowing interaction with the IOTA network.
Actual behaviour
The error indicates that the http2 feature is not enabled in the IOTA SDK, preventing the code from executing successfully.
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
Yes, the issue can be reliably reproduced by running the code that uses the IOTA SDK in a TypeScript/Node.js project.
Steps to reproduce the issue:
Set up a TypeScript/Node.js project.
Install the IOTA SDK using the command: yarn add @iota/sdk@^2.0.0-alpha.1.
Write code that uses the IOTA SDK to interact with the IOTA network, such as retrieving node information or creating transactions.
Run the code using Node.js.
Errors
thread 'tokio-runtime-worker' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-util-0.1.3/src/client/legacy/client.rs:554:33:
http2 feature is not enabled
stack backtrace:
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
Duplicate declaration
[X] I have searched the issues tracker this issue and there is none
Issue description
When trying to use the IOTA SDK (version @iota/sdk@^2.0.0-alpha.1) in a TypeScript/Node.js project, an error occurs indicating that the http2 feature is not enabled. This issue prevents the successful execution of the code that relies on the IOTA SDK.
Version
Version:
Expected behaviour
The IOTA SDK should be able to make HTTP requests and communicate with the IOTA network without encountering the "http2 feature is not enabled" error. The code should execute successfully, allowing interaction with the IOTA network.
Actual behaviour
The error indicates that the http2 feature is not enabled in the IOTA SDK, preventing the code from executing successfully.
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
Yes, the issue can be reliably reproduced by running the code that uses the IOTA SDK in a TypeScript/Node.js project.
Steps to reproduce the issue: Set up a TypeScript/Node.js project. Install the IOTA SDK using the command: yarn add @iota/sdk@^2.0.0-alpha.1. Write code that uses the IOTA SDK to interact with the IOTA network, such as retrieving node information or creating transactions. Run the code using Node.js.
Errors
thread 'tokio-runtime-worker' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-util-0.1.3/src/client/legacy/client.rs:554:33: http2 feature is not enabled
stack backtrace: note: Some details are omitted, run with
RUST_BACKTRACE=full
for a verbose backtrace.Duplicate declaration