dependent-tan•15mo ago
Unexpected token ILLEGAL
Can someone explain me why I've this ?

9 Replies
I'm sorry, but based on the information provided, I couldn't find a solution to the "Unexpected token ILLEGAL" error in JavaScript. The source documents mainly discuss the integration of Voiceflow with Telegram, the use of Voiceflow's API, and the creation of custom entity types. They do not provide specific information on JavaScript syntax errors. If you need more specific help, please provide the exact line of code where the error occurs.
😆 never seen that one. @Daniel
dependent-tanOP•15mo ago
Ha okay 🤣
Maybe it's better to sennd a mail to VF staff than a discord message ?
Have you try single quotes?
dependent-tanOP•15mo ago
yes
this is the same
like-gold•15mo ago
mm probably because you have a bunch of special characters that are messing with it
Try popping it into chatGPT and asking to turn it into a string or remove special characters
dependent-tanOP•15mo ago
That's good, thank you very much !
like-gold•15mo ago
Also @JEFITO a better workaround is to use the Javascript step! Ran into this yesterday myself
just do
variable = 'value'
That bypasses alot of these issues. Just make sure your string is in between quotes. If youre dealing with an object or array you can also do
variable = JSON.stringify(value)
This just turns it into a string
dependent-tanOP•15mo ago
Okay thanks you very much