I'm having issues with Section 8 Unit 2 problem? it won't submit and it matches?

Course Name: [Getting Market Data: Stocks, Crypto, News

My solution in Line 20 matches identically the line 20 in the Solution Code? It though keeps giving me a line 16 issue? Is this something new at FRED where they made changes and the problem at Quanta is old?

I need help. This is the only thing holding me back from completing the module.

Here is the issue:

At line: 16, in fred = Fred(get_fred_api()) File “/usr/local/lib/python3.9/site-packages/fredapi/fred.py”, line 50, in init raise ValueError(textwrap.dedent(“”"\ ValueError: You need to set a valid API key. You can set it in 3 ways: pass the string with api_key, or set api_key_file to a file with the api key in the first line, or set the environment variable ‘FRED_API_KEY’ to the value of your api key. You can sign up for a free api key on the Fred website at Federal Reserve Economic Data | FRED | St. Louis Fed

Hi John,

Yes, it was an API issue.
We’ve made some fixes on our end—could you please try again and let us know if it works now?

Thanks,
Ajay

1 Like