Hello i am trying to write dynamic provider which ...
# typescript
Hello i am trying to write dynamic provider which will call external api and should cancel the deployment process creation when there is error in the response. Is it possible to do that.?
mmh. have you tried throwing an exception ?
yes, it gives me: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process...
i think i am using the following set up in the
where i call my custom dynamic providers :
Copy code
module.exports = async function main() {
   const customResource = new CustomProvider(); 
i think this could prevent any leaking promises. but I am not sure.
Well error happens when create function is called. So it is not in main thread anymore tho if i understand it correclty
mmh. do you have a minimal piece of code ?
Ok nvm.. could't reproduce it in minimal example so i started to dig more into the problem. Lack of my nodejs knowladge is the real problem here. 🙂
😄 1
Thanks for your assist
🎉 1