Skip to content

[Bug]: memory_search tool fails with "fetch failed" despite embedding provider configured #47884

Description

Bug type

Behavior bug (incorrect output/state without crash)

Summary

memory_search tool returns "fetch failed" error despite embedding provider correctly configured

Steps to reproduce

  1. Configure embedding provider in openclaw.json:
    {
    "bailian-embedding": {
    "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
    "apiKey": "sk-***",
    "api": "openai-completions",
    "models": [{"id": "text-embedding-v3", "name": "text-embedding-v3"}]
    }
    }

  2. Restart Gateway: openclaw gateway restart

  3. Call memory_search tool with any query

  4. Observe error: "fetch failed" / "embedding/provider error"

Expected behavior

memory_search should:

  1. Use the configured embedding provider (bailian-embedding)
  2. Generate embeddings for the query text
  3. Search memory files by semantic similarity
  4. Return relevant memory results

Actual behavior

memory_search returns error immediately:

{
  "results": [],
  "disabled": true,
  "unavailable": true,
  "error": "fetch failed",
  "warning": "Memory search is unavailable due to an embedding/provider error."
}

### OpenClaw version

2026.3.2

### Operating system

macOS 21.6.0 (Darwin x64)

### Install method

npm global install

### Model

Primary: bailian/qwen3.5-plus Embedding: text-embedding-v3 (Aliyun Bailian)

### Provider / routing chain

Provider: bailian (Aliyun DashScope) Base URL: https://coding.dashscope.aliyuncs.com/v1 Embedding Provider: bailian-embedding Embedding Base URL: https://dashscope.aliyuncs.com/compatible-mode/v1

### Config file / key location

openclaw.json

### Additional provider/model setup details

_No response_

### Logs, screenshots, and evidence

```shell

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingbug:behaviorIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions