iotaledger / iota-sdk

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Apache License 2.0
54 stars 39 forks source link

Error: http2 feature is not enabled #2211

Closed tfrohock closed 3 months ago

tfrohock commented 3 months ago

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:

IOTA SDK: @iota/sdk@^2.0.0-alpha.1
Node.js: v18.16.0
Operating System: Ubuntu 20.04

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

tfrohock commented 3 months ago

Found issue resolved in fork.