flask-rauth icon indicating copy to clipboard operation
flask-rauth copied to clipboard

_cached_content is being overwritten as a function

Open dandroid88 opened this issue 10 years ago • 2 comments

access_token = resp.content.get('access_token')

AttributeError: 'function' object has no attribute 'get'

Commented out the content() override in RauthResponse and everything works. I am using python 2.7 and OAuth2. Took me a while to wire up pycharm and confirm. Just as I step into the if, it changes from a member variable to an instance function...not sure why though.

For now I will forgoe the caching...

dandroid88 avatar Oct 02 '14 00:10 dandroid88

Wow, thanks. I had the same error. Your comment saved me a bunch of time!

dantaylor688 avatar Dec 17 '14 17:12 dantaylor688

Absolutely, we forked it, and removed the caching: https://github.com/flair-systems/flask-rauth Since the forked version wasn't in pip we added this to our requirements.txt: -e git://github.com/flair-systems/flask-rauth.git@face89b682684addb0637e534664aecc1ff72d24#egg=Flask_Rauth-master cheers

dandroid88 avatar Dec 17 '14 18:12 dandroid88