Cannot connect to latest version of fuel-core

I am unable to connect to local node after updating fuel-core. It fails with this error:

called `Result::unwrap()` on an `Err` value: IO("Response errors; Unknown field \"maxGas\" on type \"NodeInfo\".; Unknown field \"maxSize\" on type \"NodeInfo\".; Unknown field \"indexation\" on type \"NodeInfo\".; Unknown field \"txPoolStats\" on type \"NodeInfo\".")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Default host: x86_64-unknown-linux-gnu

Installed toolchains

latest-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
latest-2023-07-05-x86_64-unknown-linux-gnu
testnet-x86_64-unknown-linux-gnu

active toolchain

latest-x86_64-unknown-linux-gnu (default)
forc : 0.66.6
- forc-client
- forc-deploy : 0.66.6
- forc-run : 0.66.6
- forc-crypto : 0.66.6
- forc-debug : 0.66.6
- forc-doc : 0.66.6
- forc-fmt : 0.66.6
- forc-lsp : 0.66.6
- forc-tx : 0.66.6
- forc-wallet : 0.11.1
fuel-core : 0.40.0
fuel-core-keygen : 0.40.0

fuels versions

forc : 0.66.10
forc-wallet : 0.66.9

1 Like

This error usually means that you are using a mismatched version of the rust SDK with the fuel core. Could you share what version of the SDK you are using?

Update: I got it working by using fuel-core: v0.41.7 and fuels-rs: v0.66.10

Update: Although it works for a little while it eventually fails with error:

Provider(
    "io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.41.7+nightly.20250224.778e577ad9, supported version: 0.40.0. Error making HTTP request: error sending request for url (http://127.0.0.1:4000/v1/graphql): connection closed before message completed"

When I switch fuel core to v0.40.0 as the error requests – it returns this error when trying to connect the Provider:

called `Result::unwrap()` on an `Err` value: IO("Response errors; Unknown field \"maxGas\" on type \"NodeInfo\".; Unknown field \"maxSize\" on type \"NodeInfo\".")

For fuel-core 0.40.x (current mainnet) you must use fuels 0.66.10.

For fuel-core 0.41.x (current devnet and testnet) you must use fuels 0.70.1.

2 Likes