You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
The http transport example in the readme does not work:
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 onhttp://localhost:8086//query?db=test
(note the double//
beforequery
).The workaround is simple, just omit the
/
. Maybe the library should be resilient for this kind of errors.The text was updated successfully, but these errors were encountered: