Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Client' object has no attribute 'append' #120

Closed
patelnav opened this issue May 30, 2019 · 5 comments
Closed

AttributeError: 'Client' object has no attribute 'append' #120

patelnav opened this issue May 30, 2019 · 5 comments
Labels
Milestone

Comments

@patelnav
Copy link
Contributor

I'm using Flask-Caching on an Google AppEngine standard app as of v1.7.2. On python 2
I initialize Cache() without any params. (Defaults to memcached)

I see the following error on my local machine when using dev_appserver.py
Haven't tried to see what happens on live server.

Traceback (most recent call last):
  File "default/lib/flask_caching/__init__.py", line 785, in decorated_function
    found = self.cache.has(cache_key)
  File "default/lib/flask_caching/backends/memcache.py", line 148, in has
    return self._client.append(key, "")
AttributeError: 'Client' object has no attribute 'append'

@dmalis
Copy link

dmalis commented May 30, 2019

Live on GAE

Exception possibly due to cache backend.
Traceback (most recent call last):
File "/*****/lib/flask_caching/init.py", line 785, in decorated_function
found = self.cache.has(cache_key)
File "/****/lib/flask_caching/backends/memcache.py", line 148, in has
return self._client.append(key, "")
AttributeError: 'Client' object has no attribute 'append'

@sh4nks
Copy link
Collaborator

sh4nks commented May 31, 2019

Mhh the memcache tests all passed. This seems to be a GAE problem right?

@gergelypolonkai
Copy link
Collaborator

Indeed, GAE doesn’t seem to support the append method; see documentation here.

@sh4nks sh4nks added the bug label Jun 4, 2019
@sh4nks sh4nks added this to the 1.8.0 milestone Nov 21, 2019
@sh4nks sh4nks closed this as completed in 11c5afe Nov 24, 2019
@patelnav
Copy link
Contributor Author

patelnav commented Sep 9, 2020

Hey @sh4nks any chance you can merge this change into the 1.7 branch for us python2 suckers.

@sh4nks
Copy link
Collaborator

sh4nks commented Oct 15, 2020

@patelnav I'd merge a PR if you want to backport the fix.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants