handling missing apiKey scenario.