Share feedback, ideas and get community help

Updated last year

Chatwoot issue or feature?

At a glance

The community member is experiencing an issue where leaving out the id field causes a script to not run, resulting in a SyntaxError: Unexpected token ',' error. They suspect the issue is related to the setUser function, which is failing due to a comma with nothing before it. The community member is unsure if the id field is necessary, as they believe the script should be able to generate its own.

Another community member has responded, requesting a bot that reproduces the issue to help investigate further. There is no explicitly marked answer provided.

leaving out the id field causes the block to not run with the follow error:

Script threw an error: SyntaxError: Unexpected token ','

upon checking the script, it seems there is an issue:
as u can see the setUser function is failing as there is a , with nothing before it.

Is id necessary? it should not be since it should be able to generate its own right?
Attachment
image.png
B
1 comment
Thank you for the report. Can you provide a bot that reproduces the issue?
Add a reply
Sign up and join the conversation on Discord