Skip to content

Codebase Indexing: TypeError: fetch failed during Qdrant connection despite successful external connectivityΒ #4092

@fev4

Description

@fev4

App Version

3.18.5 (582a117)

API Provider

OpenAI

Model Used

text-embedding-3-small

πŸ” Steps to Reproduce

  1. Setup

VSCode:
Version: 1.101.0-insider (system setup)
Commit: b4912823f452c08e81283d8fd8dd9e758a00f5f4
Date: 2025-05-28T05:45:00.228Z
Electron: 35.4.0
ElectronBuildId: 11602177
Chromium: 134.0.6998.205
Node.js: 22.15.0
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.22635

Qdrant Deployment: Qdrant is deployed using the official qdrant/qdrant:latest Docker image (from Docker Hub) via Coolify, which handles container orchestration and uses Traefik as a reverse proxy for external access.

Roo Code Settings:
"Enable Codebase Indexing" is enabled.
Qdrant URL: https://[YOUR_QDRANT_DOMAIN] (e.g., https://qdrant.example.com)
Qdrant API Key: [YOUR_QDRANT_API_KEY_VALUE]
Embedding Provider: OpenAI
OpenAI Model: text-embedding-3-small

  1. Exact Actions
    After configuring and saving the settings, the extension attempts to initialize the codebase indexing.

  2. What happened after each step
    Immediately upon attempting to start indexing, the VS Code Dev Tool panel (specifically "Roo Code" and "Log (Extension Host)") displays a series of TypeError: fetch failed errors related to Qdrant collection initialization and cleanup.

πŸ’₯ Outcome Summary

Expected indexing to start but got an error instead in the dev console.

πŸ“„ Relevant Logs or Errors (Optional)

console.ts:137 [Extension Host] [QdrantVectorStore] Warning during getCollectionInfo for "ws-f5009f6ef98f9736". Collection may not exist or another error occurred: fetch failed
[Extension Host] [QdrantVectorStore] Failed to initialize Qdrant collection "ws-f5009f6ef98f9736": fetch failed
[QdrantVectorStore] Failed to initialize Qdrant collection "ws-f5009f6ef98f9736": fetch failed
[Extension Host] [CodeIndexOrchestrator] Error during indexing: TypeError: fetch failed
    at node:internal/deps/undici/undici:13510:13
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at runNextTicks (node:internal/process/task_queues:69:3)
    at listOnTimeout (node:internal/timers:549:9)
    at processTimers (node:internal/timers:523:7)
    at AJ.globalThis.fetch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions