rewrite function getBlogList, now return a func with result and an error if it happens