openclaw - ✅(Solved) Fix [Bug]: v2026.4.8, [gateway-http] unhandled error in request handler: Error: Cannot find module '@buape/carbon' [1 pull requests, 1 comments, 2 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#63231Fetched 2026-04-09 07:56:36
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
cross-referenced ×2commented ×1labeled ×1referenced ×1

After upgrading from 2026.4.5 to 2026.4.8, gateway says [gateway-http] unhandled error in request handler: Erro .

Error Message

[gateway-http] unhandled error in request handler: Error: Cannot find module '@buape/carbon' Require stack:

  • /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15) at require.resolve (node:internal/modules/helpers:163:19) at jitiResolve (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703) at jitiRequire (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290) at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987 at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js:17:15 at eval_evalModule (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:155533) at jitiRequire (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150967) at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987 at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/channel-CNJo5kvu.js:30:19 { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js' ]

Root Cause

After upgrading from 2026.4.5 to 2026.4.8, gateway says [gateway-http] unhandled error in request handler: Erro .

Fix Action

Fixed

PR fix notes

PR #63247: fix: include extensions/ in published files for bundled plugin runtime deps

Description (problem / solution / changelog)

Summary

When publishing OpenClaw, the dist/extensions/*/package.json files were not included because extensions/ wasn't in the files array in package.json. This caused the postinstall script to fail to install @buape/carbon and other bundled plugin runtime dependencies, resulting in MODULE_NOT_FOUND errors at runtime.

Changes

  • Added extensions/ to the files array in package.json so that bundled plugin metadata and their declared dependencies are available in the npm package

Testing

The fix ensures that when users install the published npm package, the postinstall script (scripts/postinstall-bundled-plugins.mjs) can read the dist/extensions/*/package.json files to discover and install the required runtime dependencies like @buape/carbon.

Fixes openclaw/openclaw#63231

Changed files

  • package.json (modified, +2/-1)

Code Example

npm uninstall -g openclaw
npm install -g openclaw
openclaw gateway uninstall
openclaw gateway install
openclaw gateway restart

---

[gateway-http] unhandled error in request handler: Error: Cannot find module '@buape/carbon'
Require stack:
- /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
    at require.resolve (node:internal/modules/helpers:163:19)
    at jitiResolve (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js:17:15
    at eval_evalModule (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:155533)
    at jitiRequire (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150967)
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/channel-CNJo5kvu.js:30:19 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js'
  ]

---
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

Yes

Summary

After upgrading from 2026.4.5 to 2026.4.8, gateway says [gateway-http] unhandled error in request handler: Erro .

Steps to reproduce

npm uninstall -g openclaw
npm install -g openclaw
openclaw gateway uninstall
openclaw gateway install
openclaw gateway restart

Expected behavior

In 2026.4.8, the gateway restart ok.

Actual behavior

gateway start with error:

[gateway-http] unhandled error in request handler: Error: Cannot find module '@buape/carbon'
Require stack:
- /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1456:15)
    at require.resolve (node:internal/modules/helpers:163:19)
    at jitiResolve (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:148703)
    at jitiRequire (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150290)
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js:17:15
    at eval_evalModule (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:155533)
    at jitiRequire (/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:150967)
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/node_modules/jiti/dist/jiti.cjs:1:157987
    at /home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/channel-CNJo5kvu.js:30:19 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/h/.nvm/versions/node/v24.14.1/lib/node_modules/openclaw/dist/ui-ztuR6rec.js'
  ]

OpenClaw version

2026.4.8

Operating system

Ubuntu 24.04

Install method

npm global

Model

minimax

Provider / routing chain

openclaw -> minimax

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The most likely fix is to ensure the @buape/carbon module is properly installed and resolved in the OpenClaw gateway environment.

Guidance

  • Verify that @buape/carbon is listed as a dependency in the OpenClaw package.json file.
  • Check if the @buape/carbon module is correctly installed by running npm install @buape/carbon in the OpenClaw installation directory.
  • If using a global installation, ensure that the global node_modules directory is correctly referenced by the OpenClaw gateway.
  • Consider reinstalling OpenClaw using npm uninstall -g openclaw followed by npm install -g openclaw to ensure all dependencies are properly installed.

Example

No specific code snippet is provided as the issue seems related to dependency resolution rather than code implementation.

Notes

The provided error message indicates a MODULE_NOT_FOUND error for @buape/carbon, suggesting an issue with dependency installation or resolution. The guidance provided aims to address this by ensuring the module is installed and accessible.

Recommendation

Apply workaround: Ensure @buape/carbon is installed and resolved correctly, as this seems to be the primary cause of the error. This approach is chosen because the issue is likely related to a missing dependency rather than a version-specific bug in OpenClaw.

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

In 2026.4.8, the gateway restart ok.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING