Hey guys, I am making an API request, and based on...
# 🌎general
b
Hey guys, I am making an API request, and based on the results some variables should be set , which in the next step in the workflow should be displayed. But for some reason botpress continues the workflow before the variables are set. I log the results from the api request, they are coming but it takes 6 seconds, in the meanwhile the botpress workflow has ended. Am I missing something regarding the async nature or something?
a
Hi @breezy-smartphone-98830 you need to await fetchData
b
Thank you