You need a "return" statement here, otherwise it'll just keep going and then try to read res.body again.