Error handling for superagent improved
Sam api upgrade