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

status 500 twitter connection #160

Open
montao opened this issue Sep 15, 2016 · 1 comment
Open

status 500 twitter connection #160

montao opened this issue Sep 15, 2016 · 1 comment

Comments

@montao
Copy link

montao commented Sep 15, 2016

I got a status 500 when trying to connect my twitter account
http://eyebrowse.csail.mit.edu/accounts/profile/sync_twitter?oauth_token=ep3hLAAAAAAAeKUBAAABVyPPgqc&oauth_verifier=rcijnzJDHylTLYJ9v4mvdpYN84IPfBbK​

It's probably in the function sync_twitter in views.py

@joshblum
Copy link
Collaborator

traceback:

Traceback (most recent call last):

File "python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  response = callback(request, *callback_args, **callback_kwargs)
File "python2.7/site-packages/django/contrib/auth/decorators.py", line 20, in _wrapped_view
  return view_func(request, *args, **kwargs)
File "python2.7/site-packages/annoying/decorators.py", line 74, in wrapper
  output = function(request, *args, **kwargs)
File "/eyebrowse-server/accounts/views.py", line 293, in sync_twitter
  access_token=token, access_token_secret=secret)
File "python2.7/site-packages/django/db/models/manager.py", line 137, in create
  return self.get_query_set().create(**kwargs)
File "python2.7/site-packages/django/db/models/query.py", line 377, in create
  obj.save(force_insert=True, using=self.db)
File "python2.7/site-packages/django/db/models/base.py", line 463, in save
  self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "python2.7/site-packages/django/db/models/base.py", line 551, in save_base
  result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "python2.7/site-packages/django/db/models/manager.py", line 203, in _insert
  return insert_query(self.model, objs, fields, **kwargs)
File "python2.7/site-packages/django/db/models/query.py", line 1593, in insert_query
  return query.get_compiler(using=using).execute_sql(return_id)
File "python2.7/site-packages/django/db/models/sql/compiler.py", line 912, in execute_sql
  cursor.execute(sql, params)
File "python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 52, in execute
  return self.cursor.execute(query, args)
DatabaseError: integer out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants