influxdata / influxdata/docs-v2

Bash syntax error on v2/api/query/

Open Beginner friendly
#7,117 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
82
Forks
326
Avg merge
1d 1h
Merged PRs (30d)
82

Description

_There's a bash syntax error on the documentation of the request samples of_ __v2/api/query/__

Here's the content of the bash request sample:
```bash
curl --request POST 'INFLUX_URL/api/v2/query?org=INFLUX_ORG' \
--header 'Content-Type: application/vnd.flux' \
--header 'Accept: application/csv \
--header 'Authorization: Token INFLUX_API_TOKEN' \
--data 'from(bucket: "example-bucket")
|> range(start: -5m)
|> filter(fn: (r) => r._measurement == "example-measurement")'
```

There's a missing closing quote from the line `--header 'Accept: application/csv \`.
It's apparent from the syntax highlighting on the web page and on this markdown snippet.

##### Relevant URLs
- [_v2/api/v2/#tag/Query_](https://docs.influxdata.com/influxdb/v2/api/v2/#tag/Query)

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the v2/api/v2/#tag/Query documentation and locate the v2/api/query request sample. Check the Bash curl snippet around the Accept header, then verify the rendered page and Markdown syntax highlighting; done means the sample has balanced quotes and displays as valid Bash.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.