Skip to content

InfluxDB command line interface import doesn't support windows line endings #15217

Open
@ilgrank

Description

@ilgrank

I'm basically re-opening #10507 since it was automatically closed. I wasted a morning trying to import valid data only to discover that CRLF line endings misinterpreted.

System info:
InfluxDB shell version 1.7.8 for Windows 10 1703
InfluxDB server version 1.7.8 running on Windows 10 1703

Steps to reproduce:

Run influx command line interface using import option
influx.exe -host x.y.z -import -path test.txt
Specify path to file with windows line endings (\r\n)
test.txt

Expected behavior:
File should be imported correctly.

Actual behavior:
File fails to import with following error.

2018/11/20 10:56:29 error writing batch: {"error":"unable to parse ''82d1ca6a-f580-420f-b808-ecff8ecb18d9' value=0 1439856000\r': bad timestamp\n...

Converting the file to unix style line endings (\n) fixes the issue, but it's not entirely clear this is the problem from the error message.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions