From 66d4b739fa11c229114cb1c2cb873e622d566583 Mon Sep 17 00:00:00 2001 From: Prune Date: Wed, 21 May 2014 11:51:45 -0400 Subject: [PATCH 1/3] send data along with the write request --- influxdb/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/influxdb/client.py b/influxdb/client.py index 57634b39..d07b7550 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -163,6 +163,7 @@ def write_points_with_precision(self, data, time_precision='s'): url=url, method='POST', params=params, + data, status_code=200 ) From bb6a47f4b38ac8bc423228fbb533e2a4fb54388f Mon Sep 17 00:00:00 2001 From: Prune Date: Wed, 21 May 2014 11:55:53 -0400 Subject: [PATCH 2/3] typo in data sending --- influxdb/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb/client.py b/influxdb/client.py index d07b7550..be180860 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -163,7 +163,7 @@ def write_points_with_precision(self, data, time_precision='s'): url=url, method='POST', params=params, - data, + data=data, status_code=200 ) From f832aa31b028b45a6311f0d7125b836514e849f7 Mon Sep 17 00:00:00 2001 From: Prune Date: Wed, 21 May 2014 12:11:22 -0400 Subject: [PATCH 3/3] data is a list, not a dict --- influxdb/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb/client.py b/influxdb/client.py index be180860..e3fa522d 100644 --- a/influxdb/client.py +++ b/influxdb/client.py @@ -71,7 +71,7 @@ def request(self, url, method='GET', params=None, data=None, """ url = "{0}/{1}".format(self._baseurl, url) - if isinstance(data, dict): + if isinstance(data, list): data = json.dumps(data) if params is None: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy