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

FuelError: Unknown field alocDependentCost on type GasCosts #2687

Closed
xpluscal opened this issue Jul 3, 2024 · 8 comments
Closed

FuelError: Unknown field alocDependentCost on type GasCosts #2687

xpluscal opened this issue Jul 3, 2024 · 8 comments
Assignees
Labels
awaiting We need further input from the author

Comments

@xpluscal
Copy link

xpluscal commented Jul 3, 2024

What version of fuels-ts are you using?

0.90.0

Steps to Reproduce

Create nodejs test script:

import { launchTestNode } from "fuels/test-utils";

(async () => {
    try {
        console.log("Starting node");
        while (true) {
            const launched = await launchTestNode();
            console.log("Launched node");
            console.log(launched);
        }
    } catch (e) {
        console.error(e);
    }
})();

And run through node --loader ts-node/esm localNode.ts

Expected Behavior

Launch a local fuel-core test node.

Actual Behavior

Errors out with

_FuelError: Unknown field "alocDependentCost" on type "GasCosts".
    at responseMiddleware (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3898:19)
    at /Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/graphql-request/dist/index.js:284:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _Provider.fetchChain (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3964:23)
    at async _Provider.fetchChainAndNodeInfo (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3862:19)
    at async _Provider.create (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3793:5)
    at async setupTestProviderAndWallets (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:8995:16)
    at async launchTestNode (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/contract/dist/test-utils.mjs:69:42)
    at async file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/localNode.ts:6:30 {
  VERSIONS: { FORC: '0.60.0', FUEL_CORE: '0.30.0', FUELS: '0.90.0' },
  metadata: {},
  code: 'invalid-request'
}
@xpluscal xpluscal added bug Issue is a bug triage labels Jul 3, 2024
@nedsalk
Copy link
Contributor

nedsalk commented Jul 3, 2024

@xpluscal Which version of fuel-core are you using? It should be 0.30.0. Please run fuel-core --version and get back to us.

@xpluscal
Copy link
Author

xpluscal commented Jul 3, 2024

@nedsalk interesting! My error code returned 0.30.0 but fuel-core --version returned 0.26.0!
How do I separately update fuel-core? I have not seen instructions in the docs. Thx!

@xpluscal
Copy link
Author

xpluscal commented Jul 3, 2024

@nedsalk FYI I used the default suggested fuelup installation including fuelup update

@xpluscal
Copy link
Author

xpluscal commented Jul 3, 2024

@nedsalk latest toolchain in fuelup returns:

Installed:

  • forc 0.60.0
  • forc-explore 0.28.1
  • forc-wallet 0.7.1
  • fuel-core 0.26.0
  • fuel-core-keygen 0.26.0

@nedsalk
Copy link
Contributor

nedsalk commented Jul 3, 2024

@xpluscal the best way to go about this until the latest tag issue is sorted out is for you to setup a custom toolchain:
fuelup toolchain new my_toolchain && fuelup component add forc@0.60.0 && fuelup component add fuel-core@0.30.0.

This will work with version 0.90.0 of the TS SDK. Version 0.91.0 will be released soon, at which point I suggest you update forc to 0.61.1: fuelup component add forc@0.61.1.

@nedsalk nedsalk self-assigned this Jul 3, 2024
@arboleya
Copy link
Member

arboleya commented Jul 3, 2024

Another option is to use the nightly toolchain:

fuelup toolchain install nightly
fuelup default nightly
fuelup show

@nedsalk nedsalk added the awaiting We need further input from the author label Jul 4, 2024
Copy link
Contributor

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

@github-actions github-actions bot added the stale Issue is now stale label Jul 19, 2024
@arboleya arboleya changed the title launchTestNode on 0.90.0 ts returns _FuelError: Unknown field "alocDependentCost" on type "GasCosts". FuelError: Unknown field "alocDependentCost" on type "GasCosts" Jul 19, 2024
@arboleya arboleya changed the title FuelError: Unknown field "alocDependentCost" on type "GasCosts" FuelError: Unknown field alocDependentCost on type GasCosts Jul 19, 2024
@github-actions github-actions bot removed the stale Issue is now stale label Jul 20, 2024
@arboleya arboleya removed the triage label Aug 2, 2024
@arboleya arboleya removed the bug Issue is a bug label Aug 14, 2024
@nedsalk
Copy link
Contributor

nedsalk commented Aug 21, 2024

It seems like the automation here didn't work, probably because of the multiple label and status changes, etc. so I'll close it manually.

@nedsalk nedsalk closed this as completed Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting We need further input from the author
Projects
None yet
Development

No branches or pull requests

3 participants