console.log the res of a get request from the server