opentargets / issues

Issue tracker for Open Targets Platform and Open Targets Genetics Portal
https://platform.opentargets.org https://genetics.opentargets.org
Apache License 2.0
12 stars 2 forks source link

[PPP API]: Disease `otarProjects` failing on api request #3176

Closed carcruz closed 6 months ago

carcruz commented 7 months ago

Describe the bug

When requesting otarProjects in the Disease entity the API throws an Internal Server Error

Expected behaviour

No error gets triggered and data response

To Reproduce

Query can be run in: https://api.partner-platform.dev.opentargets.xyz/api/v4/graphql

Variable:

{
  "efoId": "EFO_0003767"
}

Request:

query DiseaseProfileQuery($efoId: String!) {
  disease(efoId: $efoId) {
    id
    ...DiseaseProfileHeaderFragment
    ...DiseaseProfileSummaryFragment
    __typename
  }
}
​
fragment DiseaseProfileHeaderFragment on Disease {
  description
  synonyms {
    relation
    terms
    __typename
  }
  __typename
}
​
fragment DiseaseProfileSummaryFragment on Disease {
  ...OTProjectsSummaryFragment
  __typename
}
​
​
fragment OTProjectsSummaryFragment on Disease {
  otarProjects {
    otarCode
    __typename
  }
  __typename
}