Skip to content

Instantly share code, notes, and snippets.

@Makman2
Created October 5, 2015 15:38
Show Gist options
  • Save Makman2/7683a85dd5ba42a250a6 to your computer and use it in GitHub Desktop.
Save Makman2/7683a85dd5ba42a250a6 to your computer and use it in GitHub Desktop.
satellizer-oauth-fail
^Cmak@localhost:~/dev/gitmate-satellizer (master)$ ./runserver.sh
* Running on http://127.0.0.1:3000/
* Restarting with reloader
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /stylesheets/angular-toastr.css HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /stylesheets/styles.css HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/angular.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/angular-animate.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/angular-messages.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/angular-resource.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/angular-sanitize.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/angular-ui-router.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/angular-toastr.tpls.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /vendor/satellizer.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /app.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /controllers/home.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /controllers/login.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /controllers/logout.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /controllers/profile.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /controllers/repositories.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /controllers/navbar.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /services/account.js HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:36:48] "GET /partials/login.html HTTP/1.1" 304 -
127.0.0.1 - - [05/Oct/2015 17:37:02] "GET /?code=78057d84f8044f436131 HTTP/1.1" 200 -
127.0.0.1 - - [05/Oct/2015 17:37:07] "POST /auth/github HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.4/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/mak/dev/gitmate-satellizer/server/app.py", line 225, in github
update_exclude_fields=['displayname'])
File "/home/mak/dev/gitmate-satellizer/server/app.py", line 254, in link_and_login
user = User.query.filter_by(**user_filter_kws).first()
File "/usr/lib64/python3.4/site-packages/sqlalchemy/orm/query.py", line 2341, in first
ret = list(self[0:1])
File "/usr/lib64/python3.4/site-packages/sqlalchemy/orm/query.py", line 2208, in __getitem__
return list(res)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/orm/query.py", line 2412, in __iter__
return self._execute_and_instances(context)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/orm/query.py", line 2427, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/base.py", line 729, in execute
return meth(self, multiparams, params)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/sql/elements.py", line 321, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/base.py", line 826, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/base.py", line 958, in _execute_context
context)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/base.py", line 1160, in _handle_dbapi_exception
exc_info
File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/compat.py", line 188, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=exc_value)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/compat.py", line 181, in reraise
raise value.with_traceback(tb)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/base.py", line 951, in _execute_context
context)
File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/default.py", line 436, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (OperationalError) no such column: user.displayname 'SELECT user.id AS user_id, user.email AS user_email, user.password AS user_password, user.displayname AS user_displayname, user.github AS user_github, user.github_access_token AS user_github_access_token, user.gitlab AS user_gitlab, user.gitlab_access_token AS user_gitlab_access_token \nFROM user \nWHERE user.github = ?\n LIMIT ? OFFSET ?' (6023916, 1, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment