pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.67k stars 3.53k forks source link

[BUG] Cannot Retrive Top Pools data #2543

Closed daviddev-creator closed 2 years ago

daviddev-creator commented 2 years ago

Is there an existing issue for this?

Product

Info

Current Behavior

I'm review on gql on section top pools data, i'm fail to get data from https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2/graphql

the query

query {
  pairDayDatas(
    first: 30
    where: { dailyTxns_gt: 300, date_gt: 1634448060 }
    orderBy: dailyVolumeUSD
    orderDirection: desc
  ){
    id
    }
}
output:
{
  "data": {
    "pairDayDatas": []
  }
}

screenshot-nimbus-capture-2021 10 18-12_31_30

can you fixed it, thanks

Expected Behavior

I hope this can fixed, or you can explain me if any wrong on query, thanks

Steps To Reproduce

  1. Open https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2/graphql
  2. Type query like on top
  3. See the output

Environment

- Device: Macbook Air
- OS: 
- Browser: Google Chrome
- Wallet:

Anything else?

No response

daviddev-creator commented 2 years ago

@Chef-Chungus

GZ2829 commented 2 years ago

@daviddev77 Hi Dave, I went into the graphql query ui and tried your query above, it gave me the loading circle for a long while but data did eventually show up. Its possible because you are grabbing thirty that its taking a while, when I changed the first variable to 2 as opposed to 30 it still took a few minutes but it did show up quicker. Are you still getting the error?

Its possible something was changed within the graph but its coming in now for me.

daviddev-creator commented 2 years ago

thanks for answer @GZ2829 , I want to retrieve the latest data based on unix time, but the data doesn't appear, it takes a very long time, even though I used the same query before and there were no problems, thanks