waha icon indicating copy to clipboard operation
waha copied to clipboard

[GOWS][ChatWoot] - Error 500 when connecting chatwoot app

Open luizelanna opened this issue 1 year ago • 3 comments

Describe the bug

When trying to integrate chatwoot through the APP dashboard, a 500 error is thrown

Failed to update app Status: 500 Response: {"statusCode":500,"timestamp":"2025-07-24T12:02:29.294Z","exception":{"stack":"ReplyError: ERR Error running script (call to fa6f0584a970d61e0220adadc673c7773c716b38): @user_script:430: script tried accessing undeclared key, key: waha-waha-dashboard:chatwoot.scheduled | message.cleanup:repeat:chatwoot.scheduled | app_dCPDsF8S:1753390800000\n at parseError (/app/node_modules/redis-parser/lib/parser.js:179:12)\n at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14)","message":"ERR Error running script (call to fa6f0584a970d61e0220adadc673c7773c716b38): @user_script:430: script tried accessing undeclared key, key: waha-waha-dashboard:chatwoot.scheduled | message.cleanup:repeat:chatwoot.scheduled | message.cleanup | app_dCPDsF8S:1753390800000","command":{"name":"evalsha"},"name":"ReplyError"},"request":{"path":"/api/apps/app_dCPD sF8S","method":"PUT","body":{"id":"app_dCPDsF8S","session":"numero_5555","app":"chatwoot","config":{"locale":"pt-BR" ,"url":"https://app.{domain}.com","accountId":1,"accountToken":"123","inboxIdentifier":"321 t3GzUTp","inboxId":9}},"query":{}},"version":{"version":"2025.7.8","engine":"GOWS","tier":"PLUS","browser":null}}

{"version":"2025.7.8",
"engine":"GOWS",
"tier":"PLUS",
"browser":null}

Steps

Connect to the Chatwoot app the dashboard, enter the inbox data. The inbox created is API. Saving throws a 500 error.

Expected behavior

I register the connection in Chatwoot, but the messages don't arrive, and the instance in the dashboard adds the data from the status column.

luizelanna avatar Jul 24 '25 13:07 luizelanna

Use noweb or webjs

michaelvips avatar Jul 24 '25 15:07 michaelvips

@luizelanna did you follow the guide? https://waha.devlike.pro/blog/apps-chatwoot-install/ Removing/adding new app doesn't help?

Kindly check REDIS_URL in waha configuration, looks like some issues with that 🤔

@michaelvips actually GOWS is well tested engine for chatwoot

patron:PRO

devlikepro avatar Jul 25 '25 04:07 devlikepro

WAHA_WORKER_ID=

Could you try to remove this env variable, likely it set to waha-dashboard

You MUST use single worker setup and you MUST use dashboard from that worker for ChatWoot app. Apps doesn't support multi-worker setup for now

patron:PRO

devlikepro avatar Jul 25 '25 04:07 devlikepro