Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[results/react2024/all_features] runQuery Issue: Float cannot represent non numeric value: NaN #488

Open
Andrewmat opened this issue Feb 10, 2025 · 0 comments

Comments

@Andrewmat
Copy link

I tried to filter only Brazilian responses in features, the request caught an exception

Edition ID

react2024

Block ID

all_features

Filters:

{
  "options": {
    "showDefaultSeries": false,
    "enableYearSelect": false,
    "mode": "default",
    "queryOnLoad": false,
    "cutoff": 0,
    "cutoffType": "percent",
    "limit": 0,
    "mergeOtherBuckets": false,
    "preventQuery": false
  },
  "filters": [
    {
      "year": 2024,
      "conditions": [
        {
          "fieldId": "country",
          "sectionId": "user_info",
          "operator": "eq",
          "value": "BRA"
        }
      ]
    }
  ]
}

Query:


query {
  surveys {
  state_of_react {
      react2024 {
      features {
          
      all_features_1: _items {
          id
          entity {
  name
  nameHtml
  nameClean
  alias
  description
  descriptionHtml
  descriptionClean
  id
  entityType
  example {
    label
    language
    code
    codeHighlighted
  }
  avatar {
    url
  }
  homepage {
    url
  }
  youtube {
    url
  }
  twitter {
    url
  }
  bluesky {
    url
  }
  threads {
    url
  }
  twitch {
    url
  }
  rss {
    url
  }
  blog {
      url
  }
  mastodon {
      url
  }
  github {
      url
  }
  npm {
      url
  }
  mdn {
      url
  }
  caniuse {
      url
  }
  resources {
      url
      title
  }
  webFeature {
      id
      description_html
      group
      name
      spec
      status {
          baseline
          baseline_low_date
          support {
          chrome
          chrome_android
          edge
          firefox
          firefox_android
          safari
          safari_ios
          }
      }
  }
}
          
comments {
  currentEdition {
    count
  }
}

          responses(facet: _sentiment, filters: {user_info__country:{eq:BRA}}, parameters: {cutoffPercent:0,facetCutoffPercent:0,limit:0}) {
          currentEdition {
              _metadata {
  axis1Sort {
      property
      order
  }
  axis2Sort {
      property
      order
  }
  limit
  cutoff
}
              
              completion {
                  count
                  percentageSurvey
                  total
              }
              average
              percentiles {
                  p50
              }
              
  ratios {
    awareness
    interest
    usage
    retention
    positivity
    positivityRelative
  }

              buckets {
                  count
                  id
                  percentageQuestion
                  percentageSurvey
                  isFreeformData
                  hasInsufficientData
                  entity {
  name
  nameHtml
  nameClean
  alias
  description
  descriptionHtml
  descriptionClean
  id
  entityType
  example {
    label
    language
    code
    codeHighlighted
  }
  avatar {
    url
  }
  homepage {
    url
  }
  youtube {
    url
  }
  twitter {
    url
  }
  bluesky {
    url
  }
  threads {
    url
  }
  twitch {
    url
  }
  rss {
    url
  }
  blog {
      url
  }
  mastodon {
      url
  }
  github {
      url
  }
  npm {
      url
  }
  mdn {
      url
  }
  caniuse {
      url
  }
  resources {
      url
      title
  }
  webFeature {
      id
      description_html
      group
      name
      spec
      status {
          baseline
          baseline_low_date
          support {
          chrome
          chrome_android
          edge
          firefox
          firefox_android
          safari
          safari_ios
          }
      }
  }
}
                  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
  }
  bluesky {
    url
  }
  threads {
    url
  }
  twitch {
    url
  }
  rss {
    url
  }
  blog {
      url
  }
  mastodon {
      url
  }
  github {
      url
  }
  npm {
      url
  }
  mdn {
      url
  }
  caniuse {
      url
  }
  resources {
      url
      title
  }
  webFeature {
      id
      description_html
      group
      name
      spec
      status {
          baseline
          baseline_low_date
          support {
          chrome
          chrome_android
          edge
          firefox
          firefox_android
          safari
          safari_ios
          }
      }
  }
}
      token {
  id
  parentId
}
  }

                  
              }
          }
          }
      }
      }
      }
  }
  }
}

Location

https://2024.stateofreact.com/en-US/features/

Timestamp

Mon Feb 10 2025 09:08:49 GMT-0300 (Brasilia Standard Time)

Error:

{
"message": "Float cannot represent non numeric value: NaN",
"locations": [
  {
    "line": 131,
    "column": 7
  }
],
"path": [
  "surveys",
  "state_of_react",
  "react2024",
  "features",
  "all_features_1",
  19,
  "responses",
  "currentEdition",
  "ratios",
  "positivityRelative"
],
"extensions": {
  "code": "INTERNAL_SERVER_ERROR",
  "exception": {
    "message": "Float cannot represent non numeric value: NaN"
  }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant