Closed arpitvaghela closed 3 years ago
Following Error is thrown if API keys are not set in the environment variables
This can be solved by checking if process.env.WEATHERSTACK and process.env.MAPBOX exists
process.env.WEATHERSTACK
process.env.MAPBOX
Adding check
if(!process.env.WEATHERSTACK || !process.env.MAPBOX){ spinner.fail("Failed to get API keys");
Similar error is seen when API keys are invalid
Following Error is thrown if API keys are not set in the environment variables![errifnoapikey](https://user-images.githubusercontent.com/50636734/95542366-37196680-0a13-11eb-91e0-e1cecb073cdf.png)
This can be solved by checking if
process.env.WEATHERSTACK
andprocess.env.MAPBOX
exists