Add exception handling for api side with trace log and

No match.