pub async fn get_method_str(
    res: Result<Response, Error>,
    error_str: &String
) -> Result<String, Error>