smoke3785 – 17-36 Jun 28
This function is meant to 'wake up` the strapi server and give it a minute to wake up before proceeding with the build:
Unfortunately, the function where it is called will not proceed until the timeout has elapsed, although it will console.log(true) as soon as it's received a positive result. Any idea where I've gone wrong? Thanks!
2 Replies
function where it is called will not proceed until the timeout has elapsedWhat do you mean? If i understand correctly,
setTimeout
rejects the promise, which is rather not the case you want to consider as positive
Also, if resolve(true)
is correctly called first and then setTImeout
rejects promise, then you should use clearTimeout()
when you call resolve(true)
so timeout won't get called
@smoke3785This thread hasn’t had any activity in 36 hours, so it’s now locked.
Threads are closed automatically after 36 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1123668289357352961