Search endpoint script fail silently