#TypeError: Cannot read properties of undefined (reading 'trim')
30 messages Ā· Page 1 of 1 (latest)
One channel ID should be valid, yes.
I checked the Discord allowlist resolver, and a bare channel ID is supposed to work, so this looks like a bug in the setup flow, not bad input.
Can you paste:
openclaw --version
Workarounds for now:
- Use
guild:<SERVER_ID>/<CHANNEL_ID>instead of only the channel ID - Or allowlist the whole server first with
guild:<SERVER_ID> - Or set it directly in config:
{
channels: {
discord: {
groupPolicy: "allowlist",
guilds: {
"SERVER_ID": {
channels: {
"CHANNEL_ID": { enabled: true },
},
},
},
},
},
}
Docs:
If youāre already on the latest version and it still blows up, thatās issue-worthy: https://github.com/openclaw/openclaw/issues
oh my I have the same problem but haven't found the ansswer
Yep, this looks real, not just you.
A single Discord channel ID should be accepted. Right now it looks like the setup wizard is choking on that input path.
Current workaround:
- use
guild:<SERVER_ID>/<CHANNEL_ID>instead of only the channel ID, or - edit config directly:
{
channels: {
discord: {
groupPolicy: "allowlist",
guilds: {
"SERVER_ID": {
channels: {
"CHANNEL_ID": { enabled: true },
},
},
},
},
},
}
Can you both paste:
openclaw --version
Docs:
If this is still happening on the latest version, it should be filed here: https://github.com/openclaw/openclaw/issues
has anyone issued this on github from yesterday ?
Yep, looks like there is already one from yesterday:
- issue: https://github.com/openclaw/openclaw/issues/66848
- fix PR opened today: https://github.com/openclaw/openclaw/pull/66882
The issue title is generic, not Discord-specific, but it looks like the same TypeError: Cannot read properties of undefined (reading 'trim') wizard/setup crash family.
If you want, paste your:
openclaw --version
and I can tell you whether youāre likely hitting that exact regression.
OpenClaw 2026.4.14 (323493f)
i tried type server ID and channel ID together too still not working
Yep, that version lines up with the regression.
If 2026.4.14 still crashes with serverId/channelId, then the wizard is probably the broken part, not your input format.
Best workaround right now is to bypass the wizard and edit the config directly:
{
channels: {
discord: {
groupPolicy: "allowlist",
guilds: {
"YOUR_SERVER_ID": {
channels: {
"YOUR_CHANNEL_ID": { enabled: true },
},
},
},
},
},
}
Then restart the gateway.
Docs:
If you want, paste your channels.discord block here with the token removed/redacted, and Iāll sanity-check it.
can I use a previous version of openclaw though
Yes, you can, but I wouldnāt make rollback the first move unless you know a specific good version.
My recommendation:
- Best short-term: stay on
2026.4.14and bypass the broken wizard by editing the Discord config manually - If you really want to roll back: pin an older version, then run Doctor and restart the gateway
For a global install, thatās:
pnpm add -g openclaw@<version>
openclaw doctor
openclaw gateway restart
Docs:
One warning: downgrades can sometimes get weird with config/state migrations, so manual config is the safer workaround unless we know the exact last-good version for this bug.
If you want, I can help you pick the least risky option:
- manual config now
- rollback
- wait for the fix PR to land
I'm gonna just use the previous one, right before this version
Thatās reasonable.
After the downgrade, Iād do:
openclaw doctor
openclaw gateway restart
That makes sure the service and current install are aligned.
If the previous version fixes it, please post which version worked, thatāll help a lot for everyone hitting this same bug.
so, what's the previous version ?
Looks like the previous published stable is 2026.4.12.
There doesnāt seem to be a 2026.4.13 release in between.
If you want to pin that version:
pnpm add -g openclaw@2026.4.12
openclaw doctor
openclaw gateway restart
If that fixes it, please report back, thatāll help confirm the regression window.
I wanna install from the start version 4.12 though
Yep, you can start directly on 2026.4.12.
If youāre doing a fresh global install with pnpm:
pnpm add -g openclaw@2026.4.12
pnpm approve-builds -g
openclaw onboard --install-daemon
openclaw --version
A small gotcha: changing the installed version does not wipe your existing ~/.openclaw state/config. So itās a fresh code install, not automatically a fresh state install.
If you want, I can also tell you the safest way to make it truly clean without nuking anything by accident.
well I reinstall Ubuntu. So joke's on you
Okay, fair, you win š
Yep, that definitely counts as a clean start.
In that case, just install 2026.4.12 directly:
pnpm add -g openclaw@2026.4.12
pnpm approve-builds -g
openclaw onboard --install-daemon
openclaw --version
If you hit anything weird during onboard, paste it here and Iāll help untangle it.
I wanna install, pnpm not recognized
If pnpm isnāt recognized, try this first:
corepack enable
pnpm --version
If that works, then install 2026.4.12:
pnpm add -g openclaw@2026.4.12
pnpm approve-builds -g
openclaw onboard --install-daemon
If corepack is also missing, then Node isnāt set up yet. In that case you need Node first, docs here:
https://docs.openclaw.ai/install
If you want, paste the output of:
node --version
corepack --version
and Iāll tell you the next exact step.
npm install -g openclaw@2026.4.12
openclaw onboard --install-daemon, is this okay ?
Yep, that should be fine.
Iād just add a quick version check in between:
npm install -g openclaw@2026.4.12
openclaw --version
openclaw onboard --install-daemon
If openclaw --version prints 2026.4.12, youāre good to continue.
If npm trips over a sharp build error, use:
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@2026.4.12
curl -fsSL https://openclaw.ai/install.sh | bash . Can I change the version after this though ?