502 Bad gateway error when calling the API

Hello community!

I am trying the retrieve pages with disease → targets associations. Some pages work, then every time, after a while, I get a 502 Error Bad Gateway. I am cautious of not getting my IP blocked, so I prefer to turn to the community for help, instead of trying to brute force this.

Note that I am asking quite a bit of data about the targets: id, symbol, but also
biotype,
chemicalProbes,
dbXrefs,
functionDescriptions,
geneticConstraint,
genomicLocation,
geneOntology,
homologues,
pathways,
proteinIds,
safetyLiabilities,
subcellularLocations,
targetClass,
tep,
tractability,
transcriptIds,
similarEntities,
literatureOcurrences,
expressions,
knownDrugs,

The BigQuery way is not an option at this stage, nor is the full data download.
Am I asking for too much data?

Hi Lucie,

Thank you for reporting this issue! However, to troubleshoot we would need the exact pages that are throwing the 502, or the query that you are using. (Are you using the API?)

For mid-size queries fetching data from API is fine. I don’t expect your queries being blocked because of extensive usage. We are taking a look.

Best,
Daniel