Fix apiException instead of printStackTrace