You need to log the whole res to see the error, try using a catch{}error(e){console.log(e)} block
res
catch{}error(e){console.log(e)}