Git Product home page Git Product logo

Comments (7)

ByteSecurity avatar ByteSecurity commented on August 29, 2024 1

has only indexed up to block number 17308397 and data for block number 17485440 is therefore not yet available
I have also encountered this issue. It is likely that TheGraph's index is not up to date. If it is not necessary to use the latest block, I choose to use the block number returned by TheGraph.

from ityfuzz.

ByteSecurity avatar ByteSecurity commented on August 29, 2024 1

Added a fallback to use the old block method for requesting, as well as error handling.

from ityfuzz.

rappie avatar rappie commented on August 29, 2024

Any idea with this one? Is this something I could hotfix locally?

from ityfuzz.

ByteSecurity avatar ByteSecurity commented on August 29, 2024

Could you send me the URL requested on the traceback above? I would like to try reproducing it.

My guess is that either:

  1. TheGraph has stopped serving your IP.
  2. This trading pair is not indexed on TheGraph.

from ityfuzz.

rappie avatar rappie commented on August 29, 2024
url https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2
error {'errors': [{'message': 'Failed to decode `block.number` value: `subgraph QmWTrJJ9W8h3JE19FhCzzPYsJ2tgXZCdUqnbyuo64ToTBN has only indexed up to block number 17308397 and data for block number 17485440 is therefore not yet available`'}]}

It seems to be because thegraph is not indexing fast enough. Is nobody else encountering this?

I've been using a bigger delay as a workaround:

    if network == "eth":
        # delay = 50
        delay = 200000
    elif network == "bsc":
        delay = 700000
    else:
        delay = 50

    block_int = int(block, 16) if block != "latest" else int(get_latest_block(network), 16) - delay

from ityfuzz.

rappie avatar rappie commented on August 29, 2024

/swap_path/eth/0x64aa3364f17a4d01c6f1751fd97c2bd3d7e7f1d5/latest

from ityfuzz.

ByteSecurity avatar ByteSecurity commented on August 29, 2024

/swap_path/eth/0x64aa3364f17a4d01c6f1751fd97c2bd3d7e7f1d5/latest

I know where the problem is now. It's because TheGraph's block synchronization time is three years ago, which makes it impossible to get data with the latest blocks.

https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v2

from ityfuzz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.