Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

http transport query failure #82

Open
MrApe opened this issue Jul 3, 2020 · 0 comments
Open

http transport query failure #82

MrApe opened this issue Jul 3, 2020 · 0 comments

Comments

@MrApe
Copy link

MrApe commented Jul 3, 2020

The http transport example in the readme does not work:

auto influxdb = influxdb::InfluxDBFactory::Get("http://localhost:8086/?db=test");

The trailing slash behind the port is not needed. The HTTP::initCurlRead(const std::string& url) (see src/HTTP.cxx) function does look for ? and adds the /query-path, which obviously results on http://localhost:8086//query?db=test (note the double //before query).

The workaround is simple, just omit the /. Maybe the library should be resilient for this kind of errors.

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

1 participant