openclaw - ✅(Solved) Fix gateway/model-pricing bootstrap timeout warning spam and no disable toggle [1 pull requests, 1 comments, 1 participants]

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…
GitHub stats
openclaw/openclaw#60116Fetched 2026-04-08 02:36:03
View on GitHub
Comments
1
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
referenced ×1

gateway/model-pricing repeatedly logs:

pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout

This happens frequently on startup/runtime, but there appears to be no config flag or env var to disable model-pricing bootstrap when pricing is non-critical.

Root Cause

gateway/model-pricing repeatedly logs:

pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout

This happens frequently on startup/runtime, but there appears to be no config flag or env var to disable model-pricing bootstrap when pricing is non-critical.

Fix Action

Fixed

PR fix notes

PR #60141: fix(gateway): use debug log level for model-pricing bootstrap failures

Description (problem / solution / changelog)

Summary

  • Fixes #60116 - gateway/model-pricing repeatedly logs pricing bootstrap failed: TimeoutError warning without any way to disable it

Changes

  • src/gateway/model-pricing-cache.ts: Changed log level from warn to debug for bootstrap failures since pricing is optional and the gateway remains functional

Test plan

  • pnpm test -- src/gateway/model-pricing-cache passes (3/3)
  • pnpm check passes

Fixes #60116

Changed files

  • src/gateway/model-pricing-cache.ts (modified, +3/-1)
RAW_BUFFERClick to expand / collapse

Summary

gateway/model-pricing repeatedly logs:

pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout

This happens frequently on startup/runtime, but there appears to be no config flag or env var to disable model-pricing bootstrap when pricing is non-critical.

Environment

  • OpenClaw: 2026.4.1 (da64a97)
  • OS: Windows
  • Install: global npm

Reproduction

  1. Start gateway: openclaw gateway --force
  2. Wait for runtime bootstrap
  3. Observe warning logs repeatedly:
    • [model-pricing] pricing bootstrap failed: TimeoutError: The operation was aborted due to timeout

Log Samples

  • 2026-04-03 14:21:25 +08:00 pricing bootstrap failed: TimeoutError
  • 2026-04-03 14:23:12 +08:00 pricing bootstrap failed: TimeoutError
  • 2026-04-03 14:24:24 +08:00 pricing bootstrap failed: TimeoutError
  • 2026-04-03 14:26:10 +08:00 pricing bootstrap failed: TimeoutError
  • 2026-04-03 14:45:00 +08:00 pricing bootstrap failed: TimeoutError

What I checked

  • No obvious switch in openclaw.json to disable model-pricing bootstrap.
  • Searched dist code for patterns like disable pricing, skip pricing, model-pricing flags; did not find an exposed runtime toggle.

Expected behavior

One of:

  1. Provide a config/env toggle to disable model-pricing bootstrap entirely.
  2. Degrade this to debug-level when pricing is optional and keep gateway healthy.
  3. Add retry/backoff and circuit breaker to avoid frequent warning spam.

Actual behavior

Gateway remains usable, but warning spam is persistent and noisy, making it harder to spot real operational issues.

extent analysis

TL;DR

Implement a workaround by modifying the logging configuration to suppress or downgrade the TimeoutError warnings from model-pricing to a lower log level, such as debug, to reduce noise in the logs.

Guidance

  • Investigate the openclaw configuration options to see if there's an undocumented or indirect way to disable or configure the model-pricing bootstrap timeout.
  • Consider using a logging filter or a custom logging configuration to suppress or downgrade the TimeoutError warnings from model-pricing.
  • Review the openclaw source code to understand the bootstrap process and see if there's a potential patch or contribution that could add a config flag or env var to control the model-pricing bootstrap behavior.
  • Evaluate the impact of the TimeoutError warnings on the overall system health and functionality, and consider adding custom monitoring or alerting rules to distinguish between critical and non-critical issues.

Example

No code example is provided as it would require more information about the openclaw configuration and logging system.

Notes

The provided solution is a workaround, and a more permanent fix would require changes to the openclaw configuration or codebase. The feasibility of this workaround depends on the specific logging configuration and system architecture.

Recommendation

Apply a workaround by modifying the logging configuration to suppress or downgrade the TimeoutError warnings, as this is a non-invasive change that can help reduce log noise without affecting system functionality.

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…

FAQ

Expected behavior

One of:

  1. Provide a config/env toggle to disable model-pricing bootstrap entirely.
  2. Degrade this to debug-level when pricing is optional and keep gateway healthy.
  3. Add retry/backoff and circuit breaker to avoid frequent warning spam.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING