Commit Graph

19 Commits (a85306c53e2de2fa29c43e951bd9d486bea5dc39)

Author SHA1 Message Date
Stuart Carnie 4f0c70591b Go 1.10 omits Content-Type if server response has no body
https://tip.golang.org/doc/go1.10#net/http

> The content-serving handlers also now omit the Content-Type header
when serving zero-length content.
2017-12-07 19:18:44 -07:00
Andrew Montgomery-Hurrell 2ed0d2d1c9
Make client errors more helpful on downstream errs
When a downstream server such as a proxy or loadbalancer between
influxdb and the client produces an error, the client currently does
not make this very obvious.

This change introduces checks on both the content type and the
influx version header to identify whether a request was served by
influxdb itself and returns a more appropriate error in the cases
where it can be determined a downstream issue is at play.
2017-10-26 11:56:29 +01:00
Jonathan A. Sternberg 2f47c3d28f Add support for uint64 in the clients 2017-10-05 09:35:06 -05:00
jgeiger 43117a94d6 Add chunked processing back into v2 client
- Moving the to v2 client removed this functionality. This copies
  code back into the client. The tests were also added back into
  the test suite.
2017-02-13 09:21:13 -07:00
Edd Robinson feb7a2842c Use unbuffered error channels in tests 2017-01-17 10:53:15 -08:00
Edd Robinson fb7388cdfc Remove dead code from various pkgs 2017-01-17 09:47:34 -08:00
Cory LaNou 3c518f8927
panicing is bad -> error returns are good 2017-01-03 14:28:29 -06:00
Harry Rose a07103ca72 Add bound parameters map to Query object. Fixes #7687 2016-12-20 20:07:28 +00:00
Joe LeGasse ee6816756a udp client: large points will now be split, if possible
The v2 UDP client will attempt to split points that exceed the
configured payload size. It will only do this for points that have a
timestamp specified.
2016-09-23 13:22:30 -04:00
Vladimir Sagan a3da819552 UDP client refactoring 2016-09-23 13:22:30 -04:00
Vladimir Sagan 0e33af50a9 UDP client: write metrics splitting metrics into chunks 2016-09-23 13:22:30 -04:00
Edd Robinson 592d668e1b Ensure Client is safe for concurrent use
Fixes #6287.
2016-04-12 14:23:32 +01:00
Phil Sorber ed650cf4d5 Add Ping() to v2 client. 2016-02-09 09:00:36 -07:00
Cameron Sparr b0e9f7e844 Refactor HTTP client for consistency with UDP
This makes error handling easier across clients and more consistent.
Also eliminates the need for users to parse their own URLs first,
because that doesn't even guarantee the URLs will be correct http URLs
2015-11-12 14:22:16 -07:00
Nicholas Katsaros 8fe41e1870 Increase performance of the UDP client 2015-11-05 13:53:05 -05:00
Cameron Sparr e2db577e0f Implement a UDP client
closes #4647
2015-11-04 14:18:14 -07:00
Jason Wilder 0926b19e6b Prevent creating points with NaN float values
Float values are not supported in the existing engine and the tsm1
engines.  This changes NewPoint to return an error if a field value
contains a NaN field.  It also allows us to validate fields to prevent
other unsupported types from sneaking in through other input plugins.
2015-10-27 17:12:52 -06:00
Cameron Sparr 66a31ee9bc Add more public point functions for v2 client
Closes #4505
2015-10-19 17:55:26 -06:00
Cameron Sparr 696838a8c2 InfluxDB client v2
Closes #4387
2015-10-15 15:53:48 -06:00