My API call is resolved after rest of the nodes (t...
# 🌎general
m
My API call is resolved after rest of the nodes (that are technically later in sequence). How can I solve this? I tried delaying node transition, creating cheeky infinity loop until data is saved to variables etc. nothing seems to work.
e
Hey @modern-car-49427! Could you send a screenshot of your code? There may be a problem there because the Execute Code card is only finished when you get a responde from the server.
Maybe you are not using await?
m
I changed the structure of my code and it does work properly now. The question is why it didn't work properly from the start (i was using await). Thanks for reaching out.
e
Hey @modern-car-49427, glad it worked out!
Maybe you had the api call inside a function, instead of directly in the code?