In Pset8, I continue to get the "API_KEY" not set runtime error, even though i crosschecked with:
echo $API_KEY
and the response was:
AIzaSyDKcW1m49qo95kiJFTpGWTUrj3Iyi-xloA
which matched the key that i exported. Read the answer below to understand how to fix this ANNOYING bug.