Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

InfluxDBClientError: 400 when calling delete_series with no filter parameter #666

Closed
lafrech opened this issue Dec 17, 2018 · 1 comment
Closed

Comments

@lafrech
Copy link

lafrech commented Dec 17, 2018

Using Influxdb 1.7.4, this

client = InfluxDBClient(HOST, database='test')
client.delete_series()

yields

influxdb.exceptions.InfluxDBClientError: 400: {"error":"error parsing query: found EOF, expected FROM, WHERE at line 1, char 13"}

Looks like either measurements or tags should be provided.

This is not explicit in the method documentation. Perhaps a note should be added in the docs, and an exception raised if no filter is passed.

Or if it is actually possible to delete all measurements at once in Influxdb, then I guess delete_series ought to be fixed.

Or am I missing something?

@fl4p-old
Copy link

fl4p-old commented Jan 22, 2019

This is expected I'd say. You have to specify the measurement. If your intention is to drop the database don't use delete_series

@xginn8 xginn8 closed this as completed Apr 7, 2019
@xginn8 xginn8 reopened this Apr 7, 2019
xginn8 added a commit to xginn8/influxdb-python that referenced this issue Apr 7, 2019
Closes influxdata#666

Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
xginn8 added a commit to xginn8/influxdb-python that referenced this issue Apr 8, 2019
Closes influxdata#666

Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
xginn8 added a commit that referenced this issue Apr 8, 2019
…#699)

Closes #666

Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
LloydW93 pushed a commit to bbc/influxdb-python that referenced this issue Apr 15, 2019
tux-00 pushed a commit to tux-00/influxdb-python that referenced this issue Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants