mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 08:52:21 +00:00
3.5 KiB
3.5 KiB
summary, read_when
| summary | read_when | |
|---|---|---|
| Common setup/runtime issues (CLI + backend) and fixes. |
|
Troubleshooting
clawhub login opens browser but never completes
- Ensure your browser can reach
http://127.0.0.1:<port>/callback(local firewalls/VPNs can interfere). - Use headless mode:
- create a token in the web UI (Settings → API tokens)
clawhub login --token clh_...
whoami / publish returns Unauthorized (401)
- Token missing or revoked: check your config file (
CLAWHUB_CONFIG_PATHoverride?). - Ensure requests include
Authorization: Bearer ...(CLI does this automatically).
CLI/API returns Rate limit exceeded (429)
- Read headers in the response:
Retry-After= wait seconds before retryRateLimit-Remaining+RateLimit-Limit= current budgetRateLimit-Reset(orX-RateLimit-Reset) = reset timing
- The CLI now includes retry hints in 429 errors (retry delay + remaining budget).
- If many users share one egress IP (NAT/proxy), IP limit can be hit even with valid tokens.
- For non-Cloudflare deploys behind trusted proxies, set
TRUST_FORWARDED_IPS=trueso forwarded client IPs can be used. - If no trusted client IP reaches ClawHub, anonymous downloads use endpoint-scoped fallback buckets, but search and write requests intentionally stay on the shared unknown-IP bucket until proxy headers are fixed.
search / install fails with fetch failed behind a proxy
If your system requires an HTTP proxy for outbound connections (e.g. corporate firewalls, Docker containers with proxy-only internet, Hetzner VPS), the CLI will fail with:
✖ fetch failed
Error: fetch failed
Fix: Set the standard proxy environment variables:
export HTTPS_PROXY=http://proxy.example.com:3128
clawhub search "my query"
The CLI respects HTTPS_PROXY, HTTP_PROXY, https_proxy, and http_proxy.
publish fails with OPENAI_API_KEY is not configured
- Set
OPENAI_API_KEYin the Convex environment (not only locally). - Re-run
bunx convex dev/bunx convex deployafter setting env.
publish fails with GitHub API rate limit exceeded
- This is a GitHub publish-gate lookup hitting unauthenticated limits.
- Set
GITHUB_TOKENin Convex environment to use authenticated GitHub API limits. - Retry publish after a short wait if the limit was already exhausted.
sync says “No skills found”
synclooks for folders containingSKILL.md(orskill.md).- It scans:
- workdir first
- then fallback roots (legacy
~/clawdis/skills,~/clawdbot/skills, etc.)
- Provide explicit roots:
clawhub sync --root /path/to/skills
update refuses due to “local changes (no match)”
- Your local files don’t match any published fingerprint.
- Options:
- keep local edits; skip updating
- overwrite:
clawhub update <slug> --force - publish as fork: copy to new folder/slug then
clawhub skill publish ... --fork-of upstream@version
GET /api/* works locally but not on Vercel
- Check
vercel.jsonrewrite destination points at your Convex site URL. - Ensure
VITE_CONVEX_SITE_URLandCONVEX_SITE_URLmatch your deployment.
deploy.yml fails before deploy or smoke runs
- Ensure GitHub Actions secrets exist on the
Productionenvironment:CONVEX_DEPLOY_KEY- Optional:
PLAYWRIGHT_AUTH_STORAGE_STATE_JSON
- Missing required deploy secrets now fails the preflight job immediately.
- If the optional Playwright auth secret is missing, authenticated smoke canaries will skip; deploy should still proceed.