Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Subpath for Host - 404 Not found #569

Closed
darox opened this issue Mar 21, 2018 · 2 comments
Closed

Subpath for Host - 404 Not found #569

darox opened this issue Mar 21, 2018 · 2 comments

Comments

@darox
Copy link

darox commented Mar 21, 2018

Im running my influxdb behind a nginx reverse proxy on port 443 with subpath /influx which is working fine with curl, but with the influxdb python library it does not.
I get the following error back:
Traceback (most recent call last): File "./check_lte_default_cell_ping_update_db.py", line 53, in <module> client.write_points(json_body) File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 391, in write_points tags=tags) File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 436, in _write_points expected_response_code=204 File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 278, in write headers=headers File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 248, in request raise InfluxDBClientError(response.content, response.status_code) influxdb.exceptions.InfluxDBClientError: 404: 404 page not found

Works (curl):
curl -i -k -XPOST 'https://192.168.1.151/write?db=mydb' -u admin:admin --data-binary 'state value=1'

Doesn't work (python):

client = InfluxDBClient('192.168.1.151/influx/', 443, 'admin', 'admin', 'mydb', ssl=True, verify_ssl=False)

@micw
Copy link

micw commented Apr 3, 2018

It won't work this way. There's an open pull request handling this: #556

@xginn8
Copy link
Collaborator

xginn8 commented Jul 1, 2018

Fixed in #556

@xginn8 xginn8 closed this as completed Jul 1, 2018
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

3 participants