Commit Graph
74 Commits
Author SHA1 Message Date
Philip KraussandHonza Král 28920b5d59 Ensure a custom User-Agent header is not overwritten (#992) 2019-08-12 14:20:10 +02:00
Philip KraussandNick Lang 100a2e623b Send User-Agent header identifying the Client (#991)
* send user agent header identifing the client

* no need to instantiate a new var

* add python version to user-agent
2019-08-08 08:50:11 -06:00
Honza Král 6dc6018a51 missing import 2019-07-28 00:02:31 +02:00
Honza Král 4b88e12a13 Do not sleep during the retry loop 2019-07-26 16:26:27 +02:00
Nick LangandGitHub 206f5e2754 Black (#948) 2019-05-10 09:16:33 -06:00
Nick LangandGitHub 7751fede5a add wait on delay (#794) 2018-05-18 14:30:31 -06:00
Nick LangandGitHub 1cae2b7eb0 Merge pull request #695 from fbacchella/explicitly_typo
Typo in a comment.
2018-01-10 13:59:18 -07:00
Andrew OdendaalandGitHub 90972e3983 Update transport.py 2018-01-05 13:50:52 +00:00
Andrew OdendaalandGitHub 3fd2c1a29d Issue: 696
`crate should be corrected to create.` as per https://github.com/elastic/elasticsearch-py/issues/696
2018-01-05 13:43:21 +00:00
Fabrice Bacchella b4a66c60a3 Typo in a comment. 2018-01-01 17:35:26 +01:00
Fabrice BacchellaandHonza Král 8c13060c87 ImproperlyConfigured is imported but not used in transport. (#693) 2018-01-01 15:54:39 +01:00
Fabrice BacchellaandHonza Král 920218db83 Transport.perform_request mutate headers. (#694) 2018-01-01 15:54:09 +01:00
Fabrice BacchellaandHonza Král 966f689545 A connection should be marked live with HEAD too. (#688) 2017-12-27 15:02:30 -05:00
Joshua Carp 3045516738 Clean up custom headers. 2017-10-04 16:07:55 -04:00
Joshua Carp 073db90ae8 Set application/x-ndjson content type on bulk requests.
Resolves #609
2017-10-04 16:07:55 -04:00
Tyler James HardenandHonza Král d6fb95353e Fixes non UTF-8 surrogateescapes (#612)
Fixes non UTF-8 surrogateescapes 

Surrogate escapes in Unicode (non UTF-8 encoding) will be properly escaped with backslashes when encountered, versus breaking the transport layer.
Fixes #611
2017-07-11 16:58:46 +02:00
Patryk KrawaczyńskiandHonza Král 5de989be07 Fix some spelling errors in docstrings from 2015. (#571) 2017-05-19 14:49:42 -07:00
Honza Král d336c571b9 [WIP] remove scheme checking 2017-05-15 22:01:54 +02:00
Yotam TanayandHonza Král a644af0e07 Fix error where address is null in _get_host_info (#506)
* Fix error where address is null in _get_host_info

* Bump CI
2017-01-03 15:12:15 +01:00
Honza Král fe53ab588e Fix sniffing for 5.0
Fixes #477
2016-12-06 12:17:57 +01:00
Honza Král f8b090c7cc retry on 502, 503 and 504 responses from ES 2016-04-26 20:08:06 +02:00
Honza Král c51b8fdeef Refactored sniff_hosts for easier implementation of AsyncTransport 2016-03-14 22:23:04 +01:00
Honza Král 64ff08b2ae Move HEAD handling to Transport 2016-03-10 19:06:20 +01:00
Honza Král 38bb0aafbd Have transport.perform_request only return data 2016-03-10 18:59:31 +01:00
Will McGinnis b0d3de0ada requested changes. 2016-03-03 19:50:17 -05:00
Will McGinnis 8a18e4c743 added close methods to everything below transport 2016-03-03 19:31:31 -05:00
Honza Král a63bad4e1d Provide more documentation on _get_sniff_data 2015-12-07 18:41:13 +01:00
Honza Král a5aa160b81 Factored out the ES communication when sniffing
This should help with #312
2015-12-07 18:26:00 +01:00
Honza Král fb8eb4e385 Respect publish host when present on a node.
Closes #251. Thanks danpilch and bowensong for the patch!
2015-12-01 03:40:40 +01:00
Honza Král 1b60d9bf84 iElasticsearch 2.0 exposes just host:port in nodes.info
Fixes #293
2015-11-02 14:26:28 +01:00
Honza Král 10c36ad530 Make search_exists consistent with other _exists APIs
Fixes #230 Thanks ncrocfer for the report!
2015-05-18 15:50:35 +02:00
Steven Moy 7a674dbb0b Fixed Issue 180 Pass connection pool and seed_connections as two
separate arguments
2015-01-08 15:43:14 -08:00
Honza Král 0fd051922b Use chain instead of concatenation.
Fixes #180
2015-01-09 00:16:34 +01:00
Honza Král d3e745ab77 Make initial sniff (sniff_on_start) ignore sniff_timeout
This is due to issue mentioned in #167 as part of discussion
2015-01-04 19:44:21 +01:00
Honza Král 836c6d1933 Introducing DummyConnectionPool for when only 1 connection defined 2014-12-20 00:35:24 +01:00
Honza Král 265d00d5d6 Retry on some HTTP statuses and touching up the retry logic 2014-11-24 17:08:23 +01:00
Honza Král bf74f7244e make host url parsing more resilient
Reject invalid combinations of url scheme and connection_class
2014-11-14 15:55:32 +01:00
Honza Král d9296e85b9 Timeout should not trigger a retry by default 2014-11-10 23:52:26 +01:00
Honza Král 18d6b41e82 Allow body to be passed as bytes in python 3.4
Fixes #113, thanks leplatrem for the report!
2014-08-23 15:25:44 -07:00
Honza Král 8966902e40 Filter out master-only nodes when sniffing
Fixes #106, thanks jolynch!
2014-07-31 00:33:26 +02:00
Honza Král c112399631 Allow for global parameter to set per-request timeout
Fixes #100, thanks portante!
2014-07-02 15:56:57 +02:00
Bruno Renié df25a01638 Typo in sniff_hosts error message 2014-04-30 18:25:16 +02:00
Honza Král d9fd79934c Better sniff url 2014-02-14 00:29:41 +01:00
Honza Král 36ff358948 Empty string should not be returned as None 2014-02-10 18:14:39 +01:00
Honza Král bf9917b0bf Add an option to change the timeout used for sniff requests.
Fixes #45
2014-02-10 16:57:35 +01:00
Honza Král 6a7d4389cd Always raise TransportError with two params.
Fixes #44, thanks brianz!
2014-02-06 01:15:41 +01:00
Honza Král ce27faf296 Node info api has moved 2014-01-18 01:53:47 +01:00
Honza Král 05c4eefbf3 Enable deserialization of different content types coming from the server. 2013-12-14 18:15:15 +01:00
Honza Král e2ab7ea80d Adding a third return value from connection.perform_request - headers
This will be used to implement deserializing based on mimetype
2013-12-13 19:36:21 +01:00
Honza Král 95fba05e02 Fix unicode body handling.
Only body should be encoded as bytes, not anything going through the
serializer (mostly because of bulk)
2013-12-04 15:07:56 +01:00