add traceback when erorr is raised in RESTAPI 1.0