timescale / outflux

Export data from InfluxDB to TimescaleDB
Apache License 2.0
86 stars 22 forks source link

expected json response, got "text/plain" - but with JSON response body #84

Open andre-luiz-dos-santos opened 3 years ago

andre-luiz-dos-santos commented 3 years ago

I tried to test TimescaleDB by importing some data from InfluxDB, but the error below happens. The values in the response are what I have in InfluxDB. The only problem seems to be the Content-Type on the response. How to proceed?

influx version
Influx CLI 2.0.3 (git: fe04d346df) build_date: 2020-12-15T01:00:16Z
./outflux --version
Outflux version 0.2.0
Run 'outflux --help' for usage
2021/01/26 11:21:44 Discovering influx schema for measurement: http_get
2021/01/26 11:21:44 could not transfer schema for measurement 'http_get'
pipe_http_get: could not prepare extractor
pipe_http_get_ext: could not fetch data set definition for measure: http_get
could not discover the tags of measurement 'http_get'
error fetching tags for measurement 'http_get'
error executing query: SHOW TAG KEYS FROM "autogen"."http_get"
expected json response, got "text/plain", with status: 200 and response body: "{\"results\":[{\"statement_id\":0,\"series\":[{\"name\":\"http_get\",\"columns\":[\"tagKey\"],\"values\":[[\"addr\"],[\"host\"],[\"ip\"],[\"site\"]]}]}]}\n"