influxdata / influxdata/influxdb

HTTP: CREATE SUBSCRIPTION error

Open
#18,347 1 comment 0 reactions 0 assignees View on GitHub
1.x
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.