Skip to content

AsyncClientBuilder::new().static_node("http://192.168.1.127:9200") has no effect #391

@jiabochao

Description

@jiabochao
let builder = AsyncClientBuilder::new()
        .static_node("http://192.168.1.127:9200")
        .params_fluent(move |p| p
            .url_param("pretty", true)
            .header(AUTHORIZATION, auth.clone()));

let client = builder.build()?;

error message

[2019-09-23T00:29:09Z ERROR elastic::http::sender::asynchronous] Elasticsearch Response: correlation_id: 'c325f648-fe9a-4cbb-b9cd-23c2a30b54b8', error: 'Client(ClientError { inner: Error(Request, State { next_error: Some(Error(Hyper(Error(Connect, Os { code: 10061, kind: ConnectionRefused, message: "由于目标计算机积极拒绝,无法连接。" })), "http://localhost:9200/bulk_idx/_bulk")), backtrace: Some(stack backtrace:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions