Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

502 Error on /v2/tokens endpoint #115

Open
jontstaz opened this issue Jan 20, 2022 · 1 comment
Open

502 Error on /v2/tokens endpoint #115

jontstaz opened this issue Jan 20, 2022 · 1 comment

Comments

@jontstaz
Copy link

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?

@jontstaz jontstaz changed the title 502 Error 502 Error on /v2/tokens endpoint Jan 20, 2022
@yjgfn
Copy link

yjgfn commented Nov 12, 2022

我这调这个接口,经常报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"
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants