mozilla-services / syncserver

Run-Your-Own Firefox Sync Server
Mozilla Public License 2.0
1.87k stars 145 forks source link

Syncserver crash on sync request #67

Closed carpikes closed 8 years ago

carpikes commented 9 years ago

Hi, when I'm trying to sync my smartphone with my syncserver it throws this error:

INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): verifier.accounts.firefox.com
ERROR:mozsvc:Uncaught exception while processing request:
GET https://<host>/token/1.0/sync/1.5
Uncaught exception:
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/mozsvc/tweens.py", line 59, in log_uncaught_exceptions_tween
    return handler(request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/mozsvc/tweens.py", line 26, in catch_backend_errors_tween
    return handler(request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/pyramid/tweens.py", line 21, in excview_tween
    response = handler(request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/pyramid/router.py", line 163, in handle_request
    response = view_callable(context, request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/pyramid/config/views.py", line 596, in __call__
    return view(context, request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/pyramid/config/views.py", line 329, in attr_view
    return view(context, request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/pyramid/config/views.py", line 305, in predicate_wrapper
    return view(context, request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/pyramid/config/views.py", line 355, in rendered_view
    result = view(context, request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/pyramid/config/views.py", line 501, in _requestonly_view
    response = view(request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/cornice/service.py", line 514, in wrapper
    response = view_(request)
  File "/<dir>/syncserver/local/local/lib/python2.7/site-packages/tokenserver/views.py", line 202, in return_token
    user = backend.get_user(service, email)
  File "/<dir>/syncserver/syncserver/staticnode.py", line 141, in get_user
    'first_seen_at': row.created_at,
<type 'exceptions.AttributeError'>
AttributeError("Could not locate column in row for column 'created_at'",)
Schroedingers-Cat commented 9 years ago

Can confirm this issue. Thank you for the fix, it helped me too.