A couple of weeks ago, with the release of fuel-core v0.31.0, we left the complexity query limit of our GraphQL endpoint set to 10M, mentioning that we would reduce it in the coming weeks. To ensure the ongoing stability of our network, we have now decided to reduce the complexity limits of our GraphQL endpoints from 10M to 20k. The original high limits exposed Fuel to potential DoS-like attacks, so it’s prudent to close these attack vectors as soon as possible.
Based on our analysis, the 20k limit will be sufficient for normal, ongoing use.
We will be implementing these changes in our Testnet environment today, October 2nd. We recommend that you load-test any large GraphQL queries to identify any potential impact. If this change affects your work or compromises any critical timelines, please let us know by putting your queries in this thread. The Mainnet, when released, will also have these limits in place.
The simplest fixes to issues will likely be one of the two options listed below:
For ongoing updates, split large queries into multiple smaller queries of lower complexity.
To synchronize with our nodes from scratch, use a local node rather than GraphQL queries.
We would appreciate a quick feedback loop. If you encounter specific issues that are not resolved using the above methods, please reach out to us for support by replying with your queries in here.
We have decreased the complexity to 80k in the testnet network i.e. you can query up to 40 blocks in one request. Let us know if something breaks for you.