pancakeswap/pancake-info-api

502 Error on /v2/tokens endpoint

jontstaz opened this issue · 1 comments

I've noticed I always get 502 error on this endpoint: https://api.pancakeswap.info/api/v2/tokens/{token}

Particularly when I am searching very new tokens. Eg. this gives me 502 (OCL - brand new coin): https://api.pancakeswap.info/api/v2/tokens/0xf157dded316882074f1c9a37f0fae99b410a68d9 but this works fine (WBNB): https://api.pancakeswap.info/api/v2/tokens/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c

This is annoying because my script deals almost exclusively with new listings to fetch their price. Since it's almost always a 502 error for new coins, I'm not sure how I can fetch the price of these new coins.. Any ideas?

yjgfn commented

我这调这个接口,经常报500的错误
https://api.pancakeswap.info/api/v2/tokens/0xaaB6f7F7a040783992D52a3A1533cb488f7CE297

{
error: {
code: 500,
message: "GraphQL error: panic processing query: only derived fields can lead to multiple children here"
}
}