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

trim trailing slash for urls #87

Closed
russorat opened this issue Apr 28, 2020 · 0 comments · Fixed by #93
Closed

trim trailing slash for urls #87

russorat opened this issue Apr 28, 2020 · 0 comments · Fixed by #93
Labels
bug Something isn't working
Milestone

Comments

@russorat
Copy link
Contributor

When using a url without a trailing slash, everything works fine:

client = InfluxDBClient(url="https://us-west-2-1.aws.cloud2.influxdata.com", token=token, org=org, debug=True)

But when adding a trailing slash to the url:
client = InfluxDBClient(url="https://us-west-2-1.aws.cloud2.influxdata.com/", token=token, org=org, debug=True)

the error that comes back is HTTP response body: {"code":"not found","message":"path not found"} when I use InfluxDB cloud.

For localhost, without a slash, i get a 200, but with a slash, i get a 204.

IMO, we should detect and trim the trailing slash from the connection urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants