Share feedback, ideas and get community help

Updated 2 months ago

Why is TypeBot generating this error in the LOG?

At a glance

A community member is encountering a SyntaxError when executing a script, specifically an "Unexpected identifier 'Solucoes'" error. Other community members explain that this is a legacy behavior where the system always tries to evaluate the text input as code, even if it's just a text variable. They mention that this issue will be addressed in an upcoming version of the typebot schema, with a release planned for the 1st of February. In the meantime, they recommend waiting for the fix rather than reverting to a previous version.

Useful resources
I'm getting the error below but I'm just setting a text type variable

Error while executing script
SyntaxError: Unexpected identifier 'Solucoes'
at new AsyncFunction (<anonymous>)
at <isolated-vm>:3:10
at <isolated-vm>:4:3
Attachment
1.png
B
L
7 comments
You see that error in the server logs?
It's a legacy behavior, before we could not choose between Text or Code. It was only a text input where you could indeed put code in it.
So we still always try to eval the Text value as if it was code
In a next typebot schema version we will fix this behavior under the hood
Yes, we are seeing these errors in the logs.
Is there an estimated date for when this new version will be available?
Do you recommend reverting to the previous version?
Next release 1st of Feb
Add a reply
Sign up and join the conversation on Discord