sample diagnostic and fix for Web API