Added error handling single post call.