How should express write a request in promise?

  HTTP.call("GET","http://10.1.62.120:8000/data/projects/0017/experiments",{
                            auth: "admin:admin"
                        }, (error, result) =>{});
                        

this is the current way of writing, how should I modify it?

Jan.08,2022

new Promise(function(resolve, reject) {
  HTTP.call('GET','http://10.1.62.120:8000/data/projects/0017/experiments',{
                            auth: "admin:admin"
                        }, (error, result) =>{
                            if (error) {
                                reject(error);
                            } else {
                                resolve(result);
                            }
                        });
});
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaef18-69988.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaef18-69988.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?