Devographics / Monorepo

Monorepo containing the State of JS apps
surveyform-sigma.vercel.app
Other
134 stars 52 forks source link

[results/js2023/country] runQuery Issue on vs Age Filter #398

Open bandna22 opened 4 months ago

bandna22 commented 4 months ago

Edition ID

js2023

Block ID

country

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "grid",
    "queryOnLoad": false,
    "cutoff": 1,
    "cutoffType": "percent",
    "limit": 20,
    "mergeOtherBuckets": false,
    "preventQuery": false
  },
  "filters": [],
  "facet": {
    "sectionId": "user_info",
    "id": "age"
  }
}

Query:


query {
    surveys {
    state_of_js {
        js2023 {
        user_info {

        country_by_age_default: country {
            id

            responses(facet: user_info__age, parameters: {showNoAnswer:true,mergeOtherBuckets:false,limit:20,cutoffPercent:1,facetCutoffPercent:1}) {
            currentEdition {

                completion {
                    count
                    percentageSurvey
                    total
                }
                average
                percentiles {
                    p50
                }

                buckets {
                    count
                    id
                    percentageQuestion
                    percentageSurvey
                    hasInsufficientData
                    entity {
    name
    nameHtml
    nameClean
    alias
    description
    descriptionHtml
    descriptionClean
    id
    entityType
    example {
      label
      language
      code
      codeHighlighted
    }
    avatar {
      url
    }
    homepage {
      url
    }
    youtube {
      url
    }
    twitter {
      url
    }
    twitch {
      url
    }
    rss {
      url
    }
    blog {
        url
    }
    mastodon {
        url
    }
    github {
        url
    }
    npm {
        url
    }
    mdn {
        url
    }
    caniuse {
        url
    }
    resources {
        url
        title
    }
}
                    averageByFacet

    percentilesByFacet {
        p0
        p10
        p25
        p50
        p75
        p90
        p100
    }

    facetBuckets {
        id
        count
        percentageBucket
        percentageQuestion
        hasInsufficientData
        entity {
    name
    nameHtml
    nameClean
    alias
    description
    descriptionHtml
    descriptionClean
    id
    entityType
    example {
      label
      language
      code
      codeHighlighted
    }
    avatar {
      url
    }
    homepage {
      url
    }
    youtube {
      url
    }
    twitter {
      url
    }
    twitch {
      url
    }
    rss {
      url
    }
    blog {
        url
    }
    mastodon {
        url
    }
    github {
        url
    }
    npm {
        url
    }
    mdn {
        url
    }
    caniuse {
        url
    }
    resources {
        url
        title
    }
}
        token {
    id
    parentId
}
    }

                }
            }
            }
        }
        }
        }
    }
    }
}

Location

https://2023.stateofjs.com/en-US/demographics/

Timestamp

Wed Jun 26 2024 10:07:25 GMT+0530 (India Standard Time)

Error:

  {
  "message": "detectNaN: Detected NaN value in key averageByFacet of object: {\n  \"groupedBuckets\": [],\n  \"groupedBucketIds\": [],\n  \"count\": 0,\n  \"percentageQuestion\": 0,\n  \"percentageSurvey\": 0,\n  \"averageByFacet\": null,\n  \"percentilesByFacet\": {\n    \"p0\": null,\n    \"p10\": null,\n    \"p25\": null,\n    \"p50\": null,\n    \"p75\": null,\n    \"p90\": null,\n    \"p100\": null\n  },\n  \"medianByFacet\": null,\n  \"percentageBucket\": 0,\n  \"id\": \"range_under_20\",\n  \"entity\": {\n    \"entityType\": \"default\"\n  },\n  \"token\": {\n    \"entityType\": \"default\"\n  },\n  \"hasInsufficientData\": true\n}",
  "locations": [
    {
      "line": 13,
      "column": 13
    }
  ],
  "path": [
    "surveys",
    "state_of_js",
    "js2023",
    "user_info",
    "country_by_age_default",
    "responses",
    "currentEdition"
  ],
  "extensions": {
    "code": "INTERNAL_SERVER_ERROR"
  }
}