influxdata / influxdata/influxdb
HTTP: CREATE SUBSCRIPTION error
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
To create a subscription through the API, the request returns error:
```sh
q=CREATE+SUBSCRIPTION+%22test002%22+ON+%22telegraf%22.%2230day%22+DESTINATIONS+ALL+%22https%3A%2F%2Fdefault-m%3A30093%2Fcommonalerts%2Fpullsubscription%22'
Response body: {"error":"error parsing query: found https://default-m:30093/commonalerts/pullsubscription, expected string at line 1, char 75"}
```
What are the causes?
Contributor guide
Research direction
Reproduce the CREATE SUBSCRIPTION request through the HTTP API, then trace the subscription query parser from the API entry point. Check how the DESTINATIONS URL is tokenized and compare it with the parser's expected string form. Done means the cause is confirmed and the issue has a documented resolution or regression test.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100