Ensured that api-key missing is handel