【问题标题】:How to set Content-Type header in Elastigo如何在 Elastigo 中设置 Content-Type 标头
【发布时间】:2019-04-19 08:52:22
【问题描述】:

我在尝试使用 elastigo 将数据插入到 elasticsearch 时收到此错误。错误是

{"error":"Content-Type header [] is not supported","status":406}

有谁知道如何将内容类型标题设置为 elastigo?

我认为 Elastigo 不适用于 elasticsearch 6.4.3,我是否应该更改为 Olivere 包向 elasticsearch 发出请求?

【问题讨论】:

标签: elasticsearch go


【解决方案1】:

我应该改用 Olivere 包来向 elasticsearch 发出请求吗?

是的

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-10
    • 2015-05-05
    • 2011-01-04
    • 2011-01-26
    • 2014-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多