Devographics / Devographics/Monorepo

[results/js2024/front_end_frameworks_ratios] runQuery Issue: Float cannot represent non numeric value: NaN

Open
#489 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
178
Forks
55
Avg merge
1m
Merged PRs (30d)
2

Description

### Edition ID

```
js2024
```

### Block ID

```
front_end_frameworks_ratios
```

### 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": "VNM"
}
]
}
]
}
```

### Query:

```

query {
surveys {
state_of_js {
js2024 {
front_end_frameworks {

front_end_frameworks_ratios_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
}
}
}
}

responses(facet: _sentiment, filters: {user_info__country:{eq:VNM}}, parameters: {cutoffPercent:0,facetCutoffPercent:0,limit:0}) {
allEditions {
_metadata {
axis1Sort {
property
order
}
axis2Sort {
property
order
}
limit
cutoff
}
editionId
year
completion {
count
percentageSurvey
total
}
average
percentiles {
p50
}

ratios {
awareness
interest
usage
retention
positivity
positivityRelative
}


}
}
}
}
}
}
}
}

```

### Location

https://2024.stateofjs.com/ru-RU/libraries/front-end-frameworks/

### Timestamp

Tue Feb 11 2025 23:45:13 GMT+0300 (Moscow Standard Time)

### Error:

```
{
"message": "Float cannot represent non numeric value: NaN",
"locations": [
{
"line": 126,
"column": 7
}
],
"path": [
"surveys",
"state_of_js",
"js2024",
"front_end_frameworks",
"front_end_frameworks_ratios_1",
6,
"responses",
"allEditions",
0,
"ratios",
"positivityRelative"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"message": "Float cannot represent non numeric value: NaN"
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the GraphQL query from the issue for edition js2024, block front_end_frameworks_ratios, and country VNM, using the linked State of JS page as context. Trace the responses.allEditions[0].ratios.positivityRelative result and identify why it becomes NaN; done means the query returns a numeric value without the Float serialization error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.