Queries no longer return data
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 51
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 4
Description
**Steps to reproduce:**
I don't know how to reproduce this bug.
**Expected behavior:**
Queries from the Explore section of the UI return results.
**Actual behavior:**
All queries sent through the Explore section of the UI (using both script editor and query builder) return the following error message:
``compilation failed: extern json parse error: missing field `value` at line 1 column 849``
**Environment info:**
- System info: `Linux 5.8.0-1036-azure x86_64`
- InfluxDB version: `InfluxDB 2.0.7 (git: 2a45f0c037) build_date: 2021-06-04T19:17:40Z`
- Same result on Chrome, Firefox, IE
**Additional info:**
I looked on the developer tools Network tab and found that the requests that the queries send return a `400 bad request`. I found an object called `extern` in the payload which looks relevant to the error message, it is posted below:
```json
"extern": {
"type": "File",
"package": null,
"imports": null,
"body": [
{
"type": "OptionStatement",
"assignment": {
"type": "VariableAssignment",
"id": {
"type": "Identifier",
"name": "v"
},
"init": {
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "StationId"
},
"value": {
"type": "StringLiteral"
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "timeRangeStart"
},
"value": {
"type": "UnaryExpression",
"operator": "-",
"argument": {
"type": "DurationLiteral",
"values": [
{
"magnitude": 1,
"unit": "h"
}
]
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "timeRangeStop"
},
"value": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "now"
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "windowPeriod"
},
"value": {
"type": "DurationLiteral",
"values": [
{
"magnitude": 5000,
"unit": "ms"
}
]
}
}
]
}
}
}
]
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.