We have similar issue with having non-printables in tag value and I'd like to
drop series with messed-up tag value.
I managed to work around the python exception:
$ q=$(python -c 'import sys; reload(sys); sys.setdefaultencoding("utf8");
print(u"show series where \"type\" = '\''c\ufffdient'\''")')
$ echo $q
show series where "type" = 'c�ient'
And then to look for these series:
$ influx -format json -pretty --database ... -execute "$q"
{
"results": [
{}
]
}
No luck.
Please let me know if you find out something.
On Tuesday, February 14, 2017 at 1:00:54 PM UTC+1, Willem D'Haese wrote:
> When I execute with curl:
>
>
>
>
>
> --data-urlencode $(python -c 'print(u"q=drop measurement
> \u00053\ufffdf\ufffd")')
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in
> position 21: ordinal not in range(128)
> curl: option --data-urlencode: requires parameter
> curl: try 'curl --help' or 'curl --manual' for more information
>
> When executed in cli on the InfluxDB server:
>
>
>
>
>
> python -c 'print(u"q=drop measurement \u00053\ufffdf\ufffd")'
> q=drop measurement 3�f�
> The system is running on Centos 7. Not sure what to try next.
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/0a79bb88-5d8f-410b-9740-ee63816bd4da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.