Hey, not sure when, but it couldn't have been more than a few days ago, we started receiving an error when querying specific loans from the GraphQL API.
Our request:
query {
lend {
loans(
filters: {
loanIds: [1842103,1842095],
status: all,
}
queryString:""
limit:18
offset:0
) {
totalCount
values {
id,
name,
loanAmount,
loanFundraisingInfo {
fundedAmount
}
image {
url(presetSize: loan_thumbnail)
}
use
description
geocode {
country {
name
isoCode
region
}
city
}
sector {
id
}
activity {
id
}
plannedExpirationDate
status
}
}
}
}
The error:
"errors": [
{
"message": "Cannot return null for non-nullable field LoanDirect.geocode.",
"locations": [
{
"line": 25,
"column": 9
}
],
"path": [
"lend",
"loans",
"values",
0,
"geocode"
],
"code": "api.graphqlError",
"extensions": {
"code": "api.graphqlError"
}
}
]
It looks like the loan has been anonymized. Is this an issue, or is it how the API will work from now on, and we have to make sure not to request geocode data for anonymized loans?