add trace to int_msg_handler to handle api error