update api
check reply error