Client does not check if it is able to connect to qdrant

未关闭
#258 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust
领域
api

调研方向

首先跟踪 QdrantConfig::from_url、connect_timeout 和 build,以查看当前连接设置在哪里停止,然后将该行为与第一次 API 调用进行比较。定义服务器在 http://localhost:6334 不可用时的连接错误行为,并通过本地连接测试进行验证。

由索引模型根据 Issue 内容生成。

描述

The qdrant client library currently does not verify if it is able to connect to qdrant server. If it is able to connect is only detectable after issuing the first api call.

For example:

QdrantConfig::from_url("http://localhost:6334")
    .connect_timeout(Duration::from_secs(4))
    .build()
    .map_err(|e| Error::new(ErrorKind::Other, e))?;

succeeds immediately. Even if there is no server running at http://localhost:6334. This makes it difficult to observe connection errors. Tested on MacOS 26.1.

主要语言
Rust
星标
425
派生
89
平均合并
2 小时 48 分钟
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

qdrant/rust-client 的其他 Issue

查看 qdrant/rust-client 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。