2

I am following the instruction as per the API documentation and enquiring the following endpoint:

summary = 'https://api.pancakeswap.info/api/v2/summary'

However I am getting the following error:

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

Here is my code:

import requests
import json

summary = 'https://api.pancakeswap.info/api/v2/summary'

def get_data(endpoint):
    data = requests.get(endpoint).json()
    print(data)


get_data(summary)

What am I doing wrong and how to fix it?

Pro Girl
  • 762
  • 7
  • 21

1 Answers1

3

There is a problem with the server. I even tried to use their own Run button on their website and got the same message:

Image

When running other API calls, there was no error, so I think there is just an issue with this specific API call.

ScottC
  • 3,941
  • 1
  • 6
  • 20
  • According https://github.com/pancakeswap/pancake-info-api/blob/develop/v2-documentation.md other calls have this problem too. – Andrej Kesely Jan 02 '23 at 22:31
  • Actually - you are right - there are some other calls that are having problems too. When I checked - this call seemed to be working: `https://api.pancakeswap.info/api/tokens` – ScottC Jan 02 '23 at 22:32