gpt4 book ai didi

c# - 无法使用NEST 1.2.0激活跟踪

转载 作者:行者123 更新时间:2023-12-02 23:38:42 25 4
gpt4 key购买 nike

今天,我将Nest软件包更新为1.2.0。现在,当我使用

var connectionSettings = new ConnectionSettings(connectionPool);
connectionSettings.EnableTrace(true); //no problem when trace not enabled
var cli = new ElasticClient(connectionSettings);
cli.IndexExists(i => i.Index(indexName)).Exists; //throw when trace enabled

然后尝试检查索引是否存在,我得到
System.NullReferenceException: Object reference not set to an instance of an object at
Elasticsearch.Net.Connection.RequestState.TransportRequestState`1.Dispose()
in c:\Users\gmarz\code\elasticsearch-net\src\
Elasticsearch.Net\Connection\RequestState\TransportRequestState.cs: line 181

所以我有两个问题:
  • 此新版本中是否有回归功能?
  • 您是否打算将nuget软件包的源代码发布到符号服务器,以便避免下载所有源代码?

  • 查看代码后,因为未初始化秒表对象,所以将抛出transportRequestState的dispose方法。 (TransportRequestState.ce ln184)。如果我确实激活指标或有人在登录之前测试_stopwatch无效,它将起作用

    最佳答案

    这是版本1.2.0中的一个已知错误,最初报告为here。我们今天早些时候发布了1.2.1,此问题已修复,现在可以通过nuget获得。

    关于c# - 无法使用NEST 1.2.0激活跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26504570/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com