#Whats app not working
1 messages Β· Page 1 of 1 (latest)
Based on the docs, this is a common WhatsApp issue. Here's how to fix it:
Quick Fix Steps
1. Check if Gateway is Running
The "No active WhatsApp Web listener" error typically means the gateway isn't running:
clawdbot gateway status
If stopped, start it:
clawdbot gateway start
2. Re-link WhatsApp (if gateway is running but still failing)
If the gateway is running but WhatsApp still shows disabled, you likely need to re-authenticate:
# List current status
clawdbot channels status
# Re-link by scanning QR code
clawdbot channels login
Then scan the QR code via WhatsApp β Settings β Linked Devices β "+".
3. Check Full Status
clawdbot status --all
Look for WhatsApp section - it should show linked: true.
4. Check Logs if Still Broken
clawdbot logs --follow
Look for "whatsapp" or "web" errors.
Common Causes
- Gateway stopped - Most likely cause, just restart it
- Session expired - WhatsApp sessions occasionally expire, relogin fixes
- Credentials corrupted -
~/.clawdbot/credentials/whatsapp/default/creds.jsonmay be bad; logout + re-login - Bun runtime - If using Bun, WhatsApp is unreliable; use Node instead
Let me know what clawdbot status --all shows and I can help troubleshoot further! π¦
@marsh frost This is what clawdbot status --all says
Found the issue! Looking at the status output:
Channels
ββββββββββββ¬ββββββββββ¬βββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββ
β Channel β Enabled β State β Detail β
ββββββββββββΌββββββββββΌβββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββ€
β WhatsApp β OFF β OFF β disabled β
ββββββββββββ΄ββββββββββ΄βββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββ
WhatsApp is disabled in your config. The gateway is running, but WhatsApp isn't enabled.
Fix: Enable WhatsApp
Option 1: Quick CLI fix (if you have config editing enabled)
clawdbot config set channels.whatsapp.dmPolicy allowlist
clawdbot config set channels.whatsapp.allowFrom "+1234567890" # your number
Option 2: Edit config manually
Edit ~/.clawdbot/clawdbot.json and add:
{
"channels": {
"whatsapp": {
"dmPolicy": "allowlist",
"allowFrom": ["+1234567890"] # Replace with your WhatsApp number in E.164 format
}
}
}
Then link WhatsApp
clawdbot channels login --channel whatsapp --account default
Scan the QR code via WhatsApp β Settings β Linked Devices β "+".
Note: There's also a separate issue - your agent is missing an Anthropic API key (check the logs). But let's fix WhatsApp first, then tackle that if needed. π¦
It gave me this error "Error: Config validation failed: channels.whatsapp.allowFrom: Invalid input: expected array, received number"
@marsh frost
The allowFrom needs to be an array (even for one number). Try:
clawdbot config set 'channels.whatsapp.allowFrom' '["+1234567890"]'
Note the single quotes around the whole value and double quotes inside the array. The brackets [] make it an array.
Or just edit the config file directly - it's often easier. π¦
This is what it says now "Updated channels.whatsapp.allowFrom. Restart the gateway to apply." @marsh frost
So I restarted the gateway but the channel still says disabled. @marsh frost
Ah, the dashboard shows Linked: Yes but Running: No and Connected: No. The session is stale.
Fix Steps:
- Click "Logout" first (clears the broken session)
- Click "Show QR" to generate a fresh QR code
- Scan it with WhatsApp: Settings β Linked Devices β "+"
- After scanning, WhatsApp should show as Running: Yes and Connected: Yes
The "Linked: Yes" was a stale session that had disconnected. Fresh QR + scan will fix it! π¦
So I scanned the QR code but on the whatsapp app it says Couldn't link device Try again later.
@marsh frost
@marsh frost
Hello @marsh frost
Can you please help me @marsh frost
@marsh frost
Hey! Did the QR scan work? Let me know if:
- β WhatsApp is now working
- β Still showing disabled/running no - if so, share the new status screenshot
I'm here to help get it working! π¦
Need more info to debug:
-
New screenshot - What's the status now after trying to scan?
-
Did the QR code appear? (Sometimes it takes 10-20 seconds)
-
What happens when you click "Show QR" - does anything show up?
-
Check logs - Run this in terminal and share what you see:
clawdbot logs --tail 50 | grep -i whatsapp
The more detail you share, the faster I can help! π¦
Let's skip the dashboard and use the CLI instead - it's more reliable:
clawdbot channels login --channel whatsapp --account default
This should output a QR code in your terminal. Scan it with WhatsApp (Settings β Linked Devices β "+").
If you get an error or no QR appears, share what it says. π¦
error: unknown option '--tail'```
Also it is still showing this
@marsh frost
Also currently this is what my config looks like:
"channels": {
"whatsapp": {
"accounts": {
"default": {
"enabled": true,
"dmPolicy": "pairing",
"groupPolicy": "allowlist",
"debounceMs": 0
}
},
"dmPolicy": "allowlist",
"selfChatMode": false,
"allowFrom": [
"+8080123456"
],
"groupPolicy": "allowlist",
"mediaMaxMb": 50,
"debounceMs": 0
}
},
@marsh frost
The "Bad Request" error suggests something's stuck. Let's try:
1. Restart the gateway:
clawdbot gateway restart
2. Then try login again:
clawdbot channels login --channel whatsapp --account default
3. If that fails, check full logs:
clawdbot logs | tail -30
Did the gateway restart work? Share what happened when you ran:
clawdbot gateway restart
clawdbot channels login --channel whatsapp --account default
If you get any errors, paste them here. The "Bad Request" error won't clear until we get the gateway unstuck. π¦
Share what you see after running these commands. The "Bad Request" error means the gateway is rejecting the request - a restart usually clears that. π¦
Here is my logs. @marsh frost
It's fixed! π
Look at the logs:
β
Linked! Credentials saved for future sends.
The WhatsApp login worked via CLI! Your credentials are now saved.
Next steps:
- Refresh the dashboard - WhatsApp should now show as linked/connected
- Test it - Send a message via WhatsApp to yourself and see if Clawdbot responds
If the dashboard still shows weird, try:
clawdbot channels status
Let me know if it's working now! π¦
Here are the logs:
bash-3.2$ clawdbot channels status
π¦ Clawdbot 2026.1.24-3 (885167d)
If it's repetitive, I'll automate it; if it's hard, I'll bring jokes and a rollback plan.
β
β
Gateway reachable.
- WhatsApp default: enabled, configured, linked, stopped, disconnected, dm:pairing, allow:+8080123456, error:disabled
Tip: status --deep adds gateway health probes to status output (requires a reachable gateway).
bash-3.2$
@marsh frost
Also I am now getting this when I want to generate a new QR code since I deleted my link device. @marsh frost
The dashboard is stuck showing the old error. Your CLI login already worked earlier (we saw "β Linked! Credentials saved").
Try these steps:
-
Refresh the browser page (F5 or Cmd+R)
-
Check CLI status:
clawdbot channels status
- If still stuck, re-login via CLI:
clawdbot channels login --channel whatsapp --account default
- If QR times out in CLI too, restart gateway first:
clawdbot gateway restart
# wait 5 seconds
clawdbot channels login --channel whatsapp --account default
The dashboard UI sometimes gets out of sync. The CLI is the reliable way to link/unlink. Let me know what clawdbot channels status shows! π¦
Why the heck does it still say disabled?? What can cause this? I already did everything you said. Please find a way to fix this! @marsh frost
I hear your frustration. Let's get to the bottom of this.
The "disabled" status is likely coming from your config file. Let me check:
clawdbot config get channels.whatsapp
Also check your full config:
clawdbot config get channels
Share the output - I bet WhatsApp is explicitly set to false or disabled: true in there. π¦
Here is the output:
bash-3.2$ clawdbot config get channels.whatsapp
π¦ Clawdbot 2026.1.24-3 (885167d) β Turning "I'll reply later" into "my bot replied instantly".
{
"accounts": {
"default": {
"enabled": true,
"dmPolicy": "pairing",
"groupPolicy": "allowlist",
"debounceMs": 0
}
},
"dmPolicy": "allowlist",
"selfChatMode": false,
"allowFrom": [
"+8086738055"
],
"groupPolicy": "allowlist",
"mediaMaxMb": 50,
"debounceMs": 0
}
bash-3.2$ clawdbot config get channels
π¦ Clawdbot 2026.1.24-3 (885167d)
I can't fix your code taste, but I can fix your build and your backlog.
{
"whatsapp": {
"accounts": {
"default": {
"enabled": true,
"dmPolicy": "pairing",
"groupPolicy": "allowlist",
"debounceMs": 0
}
},
"dmPolicy": "allowlist",
"selfChatMode": false,
"allowFrom": [
"+8080123456"
],
"groupPolicy": "allowlist",
"mediaMaxMb": 50,
"debounceMs": 0
}
}
bash-3.2$
``` @marsh frost
Config looks correct - WhatsApp is enabled. The issue is somewhere else.
Let's check if the gateway is actually loading WhatsApp:
clawdbot gateway status
Check the gateway config specifically:
clawdbot config get web
Also check your full config file for any enabled: false anywhere:
clawdbot config get
The config shows WhatsApp should be enabled, but the dashboard says "disabled". This might be:
- A gateway config issue (
web.enabled) - Something in the full config overriding it
- The gateway not picking up the WhatsApp module
Share all three outputs above! π¦
Here is my logs:
bash-3.2$ clawdbot gateway status
π¦ Clawdbot 2026.1.24-3 (885167d)
I don't just autocompleteβI auto-commit (emotionally), then ask you to review (logically).
β
β
Service: LaunchAgent (loaded)
File logs: /tmp/clawdbot/clawdbot-2026-01-28.log
Command: /usr/local/bin/node /Users/josephcauton/.npm-global/lib/node_modules/clawdbot/dist/entry.js gateway --port 18789
Service file: ~/Library/LaunchAgents/com.clawdbot.gateway.plist
Service env: CLAWDBOT_GATEWAY_PORT=18789
Config (cli): ~/.clawdbot/clawdbot.json
Config (service): ~/.clawdbot/clawdbot.json
Gateway: bind=loopback (127.0.0.1), port=18789 (service args)
Probe target: ws://127.0.0.1:18789
Dashboard: http://127.0.0.1:18789/
Probe note: Loopback-only gateway; only local clients can connect.
Runtime: running (pid 4699, state active)
RPC probe: ok
Listening: 127.0.0.1:18789
Troubles: run clawdbot status
Troubleshooting: https://docs.clawd.bot/troubleshooting
bash-3.2$ clawdbot config get web
π¦ Clawdbot 2026.1.24-3 (885167d)
If you're lost, run doctor; if you're brave, run prod; if you're wise, run tests.
{
"enabled": false
}
bash-3.2$ clawdbot config get
error: missing required argument 'path'
bash-3.2$
@marsh frost
I actually fixed it. I needed to turn enable web