#discord configuration in installer results in crash

6 messages · Page 1 of 1 (latest)

obtuse bane
#

Hello, i cannot find a subject about this at all.

I ran the openclaw installation and input my anthropic key, and once it gets into chat integration, i select discord. i give it a discord channel id and it just instantly crashes with the error: TypeError: Cannot read properties of undefined (reading 'trim')
screenshot: https://imgur.com/a/jAlUE93

im on a hetzner machine running ubuntu 22.02

im using lockdown mode aswell!

#

Interesting, i skip the gateway and still get the same error. TypeError: Cannot read properties of undefined (reading 'trim')

glad jasperBOT
#

That looks like a real installer bug, not you typing the channel id wrong.

I checked current source/history, and there were onboarding/setup crash fixes right after 2026.4.9, including a reading 'trim' setup crash fix and another onboarding metadata fix. So my first move would be updating before debugging the Discord id itself.

Try this:

openclaw update
openclaw doctor
openclaw gateway restart

Then rerun either:

openclaw onboard
#

Also, if this is your private server, allowlisting the server ID first is enough, you do not need to start with a single channel ID.

If it still crashes after updating, please paste:

openclaw --version
openclaw status --all
openclaw logs --follow

and if it reproduces on the latest build, please file a GitHub issue with that output plus the screenshot: https://github.com/openclaw/openclaw/issues

#

Yeah, that makes me more confident this is an onboarding wizard bug, not a gateway/Discord runtime problem.

If it still crashes even when you skip gateway, then the failure is happening in setup flow itself. Lockdown mode also should not be the thing causing a reading 'trim' crash here.

I’d do one of these:

Best fix

openclaw update
openclaw doctor

then rerun onboarding.

Fast workaround
Skip Discord during onboarding completely, finish install, then configure it after: