Using fetch queries in documentbuilder scripts

Hello. I installed documentbuilder for windows and node.js. latest version. In scripts with requests to the API (example:fetch().then(()=>{}) and others), I get an error when executing the script. Is it possible to use fetch, ajax and other requests in documentbuilder scripts? Can you provide a working example?

Hello @Endrew

To have better understanding, please provide an example of a .docbuilder script that you were running, example of the error that you faced and explain your final goal, i.e. what you wanted to achieve with this script.