Timeline for Why does my lookup function keep returning "None"?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 9, 2021 at 18:43 | comment | added | Lperino | You were right. I looked closely at anything that could have been a typo before nuking everything. Sure enough... the API key left off the last digit. I've been pulling my hair out for the past 3 days trying to figure that out. Thanks so much for your help! | |
Sep 9, 2021 at 18:42 | comment | added | DinoCoderSaurus |
Just to be sure, you could download helpers.py from the spec again, since the time stamp on your file is earlier (01:45) than the time stamp on the download file (01:58). Also make sure the API_KEY is what you expect. Look in the flask log (in flask run terminal) to verify the API_KEY (token). The line will begin DEBUG: https://cloud.iexapis.com:443 , Also have a look at the return value from that call (after the GET string). Here is a list of iex api error codes, FYI.
|
|
Sep 9, 2021 at 18:41 | vote | accept | Lperino | ||
Sep 9, 2021 at 17:29 | comment | added | Lperino | Thanks for helping, I just can't see the problem still. Even if I change "stock" to "symbol" in both the .py and .html pages, it doesn't work. I still get my apology that it could not retrieve quote. Maybe I need to nuke it and start all over. | |
Sep 9, 2021 at 11:35 | comment | added | DinoCoderSaurus | Sorry for the misdirect, I should have put the bottom line up front. Answer has been rearranged to highlight the suspected problem. | |
Sep 9, 2021 at 11:34 | history | edited | DinoCoderSaurus | CC BY-SA 4.0 |
rearrange
|
Sep 9, 2021 at 6:02 | comment | added | Lperino | -rw-r--r-- 1 ubuntu ubuntu 1748 Apr 9 01:45 helpers.py This is what it returned, but this doesn't mean anything to me. I don't know enough about programming to understand how this could affect my lookup function. | |
Sep 7, 2021 at 13:41 | history | answered | DinoCoderSaurus | CC BY-SA 4.0 |