listen to endpoint errors