Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPOut node produces a .gz file #182

Closed
lpalm opened this issue Jan 28, 2016 · 2 comments
Closed

HTTPOut node produces a .gz file #182

lpalm opened this issue Jan 28, 2016 · 2 comments
Milestone

Comments

@lpalm
Copy link

lpalm commented Jan 28, 2016

Visiting the URL for the HTTP node downloads a file name TASKNAME.gz, which is really just a plaintext json file with an invalid extension.

I'm visiting the URL http://kapacitorhostname:9092/api/v1/TASKNAME

Tick script:
stream
.from()
.database('DBNAME')
.measurement('MEASUREMENTNAME')
.window()
.period(5s)
.every(5s)
.httpOut('TASKNAME')

This means I can't actually see the results in the browser, as I have to rename the auto-downloaded .gz file to .json or .txt. Probably an easy fix as the downloaded file is correct. We just need to give the correct MIME type/extension

@lpalm
Copy link
Author

lpalm commented Jan 29, 2016

By the way, this .gz behavior occurs when accessing the API link from Chrome in a Yosemite Mac.

@nathanielc
Copy link
Contributor

As part of the v0.10.0 release the API paths had a breaking change. The api/v1 was removed so that its paths match InfluxDB for write compatibility. Try removing the api/v1 part of the path and see if it still has the issue. It is odd that a gz file is being returned and I'll see if I can fix that. See https://docs.influxdata.com/kapacitor/v0.10/tick/http_out_node/ for docs on the correct path.

@nathanielc nathanielc added this to the v0.10.1 milestone Feb 5, 2016
nathanielc pushed a commit that referenced this issue Feb 5, 2016
Fixes #182, add Content-Type json to all requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants