openclaw - 💡(How to fix) Fix Bug: web_search 和 web_fetch 双渠道搜索均不可用

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

"status": "error", "error": "web_search is disabled or no provider is available." "status": "error", "error": "request timed out"

Code Example

// openclaw.json - tools.web.search
{
  "tools": {
    "web": {
      "search": {
        "provider": "brave"
      }
    }
  }
}

---

# service-env 中已配置
export BRAVE_API_KEY='BSA80xxxxxxxxxxxxxxx'

---

{
  "status": "error",
  "tool": "web_search",
  "error": "web_search is disabled or no provider is available."
}

---

{
  "status": "error",
  "tool": "web_fetch",
  "error": "request timed out"
}

---

# curl 直连 Google
HTTP 200 | Time: 0.347s

# Python urllib 直连 Google
[Google Search] OK | 0.279s | 89798 bytes

# Python urllib 直连 Bing
[Bing Search] OK | 0.456s | 113644 bytes

# ping
8.8.8.8: avg 174ms (正常)
api.github.com: avg 111ms (正常)
RAW_BUFFERClick to expand / collapse

Bug: web_search 和 web_fetch 双渠道搜索均不可用

问题描述

配置了 Brave API Key,但 web_searchweb_fetch 两个搜索渠道均无法正常工作。

环境信息

  • OpenClaw: 2026.5.22 (a374c3a)
  • 硬件: Mac Mini M4 Pro, 24GB 统一内存
  • OS: macOS (Darwin arm64)
  • 模型: omlx/Qwen3.6-27-Q8mtp (MLX 本地推理)
  • 网络: 正常(curl/python 直连 Google ~0.28s)

配置

// openclaw.json - tools.web.search
{
  "tools": {
    "web": {
      "search": {
        "provider": "brave"
      }
    }
  }
}
# service-env 中已配置
export BRAVE_API_KEY='BSA80xxxxxxxxxxxxxxx'

测试结果

web_search → ❌ 报错

{
  "status": "error",
  "tool": "web_search",
  "error": "web_search is disabled or no provider is available."
}

Brave API Key 已配置在 service-env 中,但 web_search 似乎没有读取到。

web_fetch → ❌ 超时

{
  "status": "error",
  "tool": "web_fetch",
  "error": "request timed out"
}

目标 URL: https://www.google.com/search?q=test

底层网络测试 → ✅ 正常

# curl 直连 Google
HTTP 200 | Time: 0.347s

# Python urllib 直连 Google
[Google Search] OK | 0.279s | 89798 bytes

# Python urllib 直连 Bing
[Bing Search] OK | 0.456s | 113644 bytes

# ping
8.8.8.8: avg 174ms (正常)
api.github.com: avg 111ms (正常)

分析

  1. web_search: Brave API Key 存在于 service-env,但工具报 "no provider available",可能是环境变量传递问题或插件加载顺序问题
  2. web_fetch: 底层网络正常,但工具层超时,可能是网关的 HTTP client 配置问题(代理/超时设置等)

复现步骤

  1. 调用 web_search(query="test", count=3) → 返回 "no provider available"
  2. 调用 web_fetch(url="https://www.google.com/search?q=test") → 返回 "request timed out"
  3. 在同一机器执行 curl https://www.google.com → 正常返回

期望行为

  • web_search 应能读取 Brave API Key 并正常搜索
  • web_fetch 应在底层网络正常的情况下成功获取页面内容

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Bug: web_search 和 web_fetch 双渠道搜索均不可用