Fixed socket.error in utils.getLinkData()