Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Oauth Access Token Error - Error: length for element #0 in dict #3

Closed
loretoparisi opened this issue Jun 15, 2010 · 2 comments
Closed

Comments

@loretoparisi
Copy link

Due to new parameters added to Twitter API for oauth access token, it is necessary to update the model for the "Oauth Access Token" class in this way:

class OAuthAccessToken(db.Model):
"""OAuth Access Token."""

service = db.StringProperty()
specifier = db.StringProperty()
oauth_token = db.StringProperty()
oauth_token_secret = db.StringProperty()
created = db.DateTimeProperty(auto_now_add=True)
# LP: parameters addon
screen_name = db.StringProperty()
user_id = db.StringProperty()

This will fix the "Error: length for element #0 in dict" error.

LP

@CosmicAnalogue465
Copy link

Thanks mate ! did the trick !

@tav
Copy link
Owner

tav commented Oct 3, 2011

Thanks for the feedback. Sorry for my delay in getting back to you!

@tav tav closed this as completed Oct 3, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants