I have set my API_KEY and API_SECRET. I can actually see them using set | grep API_KEY. The correct KEY is shown API_KEY in red and then the exact same value of the API_KEY.

I checked, no spaces before or after. No closing of Terminal Window.

Yet, when I run flask run and search for a tweeter user, I get

RuntimeError: API_SECRET not set

Any ideas appreciated!

  • You said that the key is shown as set. The error is complaining about the secret. Are both set?
    – curiouskiwi
    Aug 16 '17 at 4:32
  • Yes they are indeed
    – B Furtado
    Aug 16 '17 at 9:34
  • Do you get same error when you run tweets? ~cs50/pset6/tweets @cs50
    – curiouskiwi
    Aug 16 '17 at 9:49

It turns out there was one extra buttom to hit at the end of the page in Twitter. Something related to Access Token. Once clicked there, it seemed to work. Thanks.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .