GET and POST methods to transfer response back to ...
# 🤝help
n
I've been on this for 2 days and I get the connection but I can't get Botpress to return the value. I'm converting my setup from Voiceflow to Botpress and this setup is only a frontend. The answers are being processed in the Replit setup. const url = 'https://...n.janeway.repl.co/start' const response = await axios.get(url) The Replit listening log shows that a tread has been created and its ID as well: Starting a new conversation... New thread created with ID: thread_SUT0DXf6WtOMFkiHWE8rAjIZ 172.31.196.46 - - [02/Apr/2024 01:54:31] "GET /start HTTP/1.1" 200 - Thank you for any information and enlightenment 🙂 Ab
f
Hey there, Can you add
console.log(response)
to your code and then run it again and check the logs
n
the error log reads: Error executing action "inline-card:Send a chat message and retrieve the response..js" in flow:Main:node:Standard1 [SyntaxError, Unexpected token ':']
f
Can you send me a screenshot of your code?
It is in the second Execute Code node that the error happens, in the POST method. I was using the AI ask option to write the code.
f
You should start out by fixing everything that is underlined with red
12 Views