hypothesis / h

Annotate with anyone, anywhere.
https://hypothes.is/
BSD 2-Clause "Simplified" License
2.91k stars 426 forks source link

The registration form does not handle internal server errors #1755

Closed csillag closed 9 years ago

csillag commented 9 years ago

If a registration attempt results in an internal server error, the client is completely unprepared to handle it. There will be no indication of the fact that the data has been sent, and there was an error.

Of course, since this is (by definition) an unexpected situation, we can't do a full recovery, but we could at least say something like "Ooops, something went wrong on our server side. Please check back later.", or anything to that effect, instead of dumping this on the console:

"Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
fromJson@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:1:10343
SessionProvider</SessionProvider.prototype.$get</process@https://pdftest2.dokku.hypothes.is/assets/scripts/session.min.js?eb481275:2:1097
transformData@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:3:18705
transformResponse@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:3:22045
qFactory/defer/deferred.promise.then/wrappedErrback@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:5:692
qFactory/createInternalRejectedPromise/<.then/<@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:5:2277
$RootScopeProvider/this.$get</Scope.prototype.$eval@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:5:11070
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:5:8870
$RootScopeProvider/this.$get</Scope.prototype.$apply@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:5:11504
done@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:3:24848
completeRequest@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:3:28012
createHttpBackend/</xhr.onreadystatechange@https://pdftest2.dokku.hypothes.is/assets/scripts/vendor/angular.min.js?afd85d02:3:27289
dewolfe001 commented 9 years ago

Which version of H. is stable previous to this that may lack this error?

dewolfe001 commented 9 years ago

In this case, it looks like the Hypothesis site is responding without data. Is there any reason why this happening? Has anyone else seem the same thing happen?

tilgovi commented 9 years ago

No version lacks this error. It's not an error that always happens. It only happens if the backend returns an internal server error. It's hard to say why any server would do that without seeing tracebacks.

dewolfe001 commented 9 years ago

I was able to trap its output. Here is what it looks like:

2015-01-13 11:34:06,432 [6350] [gunicorn.error:INFO] Starting gunicorn 19.1.1 2015-01-13 11:34:06,433 [6350] [gunicorn.error:INFO] Listening at: http://142.104.145.9:5000 (6350) 2015-01-13 11:34:06,433 [6350] [gunicorn.error:INFO] Using worker: h.server.Worker 2015-01-13 11:34:06,437 [6359] [gunicorn.error:INFO] Booting worker with pid: 6359 2015-01-13 11:34:14,124 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/; route_name: 'index', path_info: u'/', pattern: '/', matchdict: {}, predicates: '' 2015-01-13 11:34:14,125 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/ (view name u'' against context {}): Allowed (no permission registered) 2015-01-13 11:34:14,471 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/styles/icomoon.css; route_name: '**assets/', path_info: u'/assets/styles/icomoon.css', pattern: 'assets/_subpath', matchdict: {'subpath': (u'styles', u'icomoon.css')}, predicates: '' 2015-01-13 11:34:14,472 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/styles/icomoon.css (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,482 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/katex/katex.min.css; route_name: 'assets/', path_info: u'/assets/scripts/vendor/katex/katex.min.css', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'katex', u'katex.min.css')}, predicates: '' 2015-01-13 11:34:14,483 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/katex/katex.min.css (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,489 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/styles/app.css?ee9b7fe3; route_name: 'assets/', path_info: u'/assets/styles/app.css', pattern: 'assets/_subpath', matchdict: {'subpath': (u'styles', u'app.css')}, predicates: '' 2015-01-13 11:34:14,489 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/styles/app.css?ee9b7fe3 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,496 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/images/logo.png; route_name: 'assets/', path_info: u'/assets/images/logo.png', pattern: 'assets/_subpath', matchdict: {'subpath': (u'images', u'logo.png')}, predicates: '' 2015-01-13 11:34:14,497 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/images/logo.png (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,548 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/styles/inject.css?b58ea9f5; route_name: 'assets/', path_info: u'/assets/styles/inject.css', pattern: 'assets/_subpath', matchdict: {'subpath': (u'styles', u'inject.css')}, predicates: '' 2015-01-13 11:34:14,548 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/styles/inject.css?b58ea9f5 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,552 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jquery.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/jquery.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'jquery.js')}, predicates: '' 2015-01-13 11:34:14,553 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jquery.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,609 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jquery.scrollintoview.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/jquery.scrollintoview.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'jquery.scrollintoview.js')}, predicates: '' 2015-01-13 11:34:14,610 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jquery.scrollintoview.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,631 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jschannel.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/jschannel.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'jschannel.js')}, predicates: '' 2015-01-13 11:34:14,631 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jschannel.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,654 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/gettext.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/gettext.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'gettext.js')}, predicates: '' 2015-01-13 11:34:14,655 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/gettext.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,677 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.js')}, predicates: '' 2015-01-13 11:34:14,677 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,709 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/plugin/bridge.js?816ad017; route_name: 'assets/', path_info: u'/assets/scripts/plugin/bridge.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'plugin', u'bridge.js')}, predicates: '' 2015-01-13 11:34:14,710 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/plugin/bridge.js?816ad017 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,727 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/plugin/bucket-bar.js?81a42a4e; route_name: 'assets/', path_info: u'/assets/scripts/plugin/bucket-bar.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'plugin', u'bucket-bar.js')}, predicates: '' 2015-01-13 11:34:14,727 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/plugin/bucket-bar.js?81a42a4e (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,744 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.document.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.document.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.document.js')}, predicates: '' 2015-01-13 11:34:14,745 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.document.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,768 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/diff_match_patch_uncompressed.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/diff_match_patch_uncompressed.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'diff_match_patch_uncompressed.js')}, predicates: '' 2015-01-13 11:34:14,768 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/diff_match_patch_uncompressed.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,805 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/dom_text_mapper.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/dom_text_mapper.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'dom_text_mapper.js')}, predicates: '' 2015-01-13 11:34:14,805 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/dom_text_mapper.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,831 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/dom_text_matcher.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/dom_text_matcher.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'dom_text_matcher.js')}, predicates: '' 2015-01-13 11:34:14,832 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/dom_text_matcher.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,849 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/text_match_engines.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/text_match_engines.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'text_match_engines.js')}, predicates: '' 2015-01-13 11:34:14,849 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/text_match_engines.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,868 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.domtextmapper.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.domtextmapper.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.domtextmapper.js')}, predicates: '' 2015-01-13 11:34:14,869 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.domtextmapper.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,894 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textanchors.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.textanchors.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.textanchors.js')}, predicates: '' 2015-01-13 11:34:14,895 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textanchors.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,912 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.fuzzytextanchors.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.fuzzytextanchors.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.fuzzytextanchors.js')}, predicates: '' 2015-01-13 11:34:14,913 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.fuzzytextanchors.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,937 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textrange.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.textrange.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.textrange.js')}, predicates: '' 2015-01-13 11:34:14,937 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textrange.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,954 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textposition.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.textposition.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.textposition.js')}, predicates: '' 2015-01-13 11:34:14,955 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textposition.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,972 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textquote.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.textquote.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.textquote.js')}, predicates: '' 2015-01-13 11:34:14,972 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.textquote.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:14,990 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.texthighlights.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.texthighlights.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.texthighlights.js')}, predicates: '' 2015-01-13 11:34:14,990 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.texthighlights.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,009 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/page_text_mapper_core.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/page_text_mapper_core.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'page_text_mapper_core.js')}, predicates: '' 2015-01-13 11:34:15,009 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/page_text_mapper_core.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,034 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.pdf.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.pdf.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.pdf.js')}, predicates: '' 2015-01-13 11:34:15,034 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.pdf.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,052 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/plugin/toolbar.js?9d9bffbe; route_name: 'assets/', path_info: u'/assets/scripts/plugin/toolbar.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'plugin', u'toolbar.js')}, predicates: '' 2015-01-13 11:34:15,053 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/plugin/toolbar.js?9d9bffbe (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,070 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/hypothesis.js?c154edfa; route_name: 'assets/', path_info: u'/assets/scripts/hypothesis.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'hypothesis.js')}, predicates: '' 2015-01-13 11:34:15,071 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/hypothesis.js?c154edfa (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,088 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/bootstrap.js; route_name: 'assets/', path_info: u'/assets/bootstrap.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'bootstrap.js',)}, predicates: '' 2015-01-13 11:34:15,088 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/bootstrap.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,120 [6359] [h:DEBUG] no route matched for url http://helene.library.uvic.ca:5000/app.html?firstrun 2015-01-13 11:34:15,121 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/app.html?firstrun (view name u'app.html' against context {}): Allowed (no permission registered) 2015-01-13 11:34:15,292 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/styles/app.css?ee9b7fe3; route_name: 'assets/', path_info: u'/assets/styles/app.css', pattern: 'assets/_subpath', matchdict: {'subpath': (u'styles', u'app.css')}, predicates: '' 2015-01-13 11:34:15,293 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/styles/app.css?ee9b7fe3 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,296 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/styles/topbar.css?f480077b; route_name: 'assets/', path_info: u'/assets/styles/topbar.css', pattern: 'assets/_subpath', matchdict: {'subpath': (u'styles', u'topbar.css')}, predicates: '' 2015-01-13 11:34:15,297 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/styles/topbar.css?f480077b (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,301 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/angular.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'angular.js')}, predicates: '' 2015-01-13 11:34:15,301 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,315 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-route.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/angular-route.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'angular-route.js')}, predicates: '' 2015-01-13 11:34:15,316 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-route.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,321 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-animate.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/angular-animate.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'angular-animate.js')}, predicates: '' 2015-01-13 11:34:15,321 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-animate.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,334 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-sanitize.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/angular-sanitize.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'angular-sanitize.js')}, predicates: '' 2015-01-13 11:34:15,334 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-sanitize.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,338 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/moment-timezone.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/moment-timezone.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'moment-timezone.js')}, predicates: '' 2015-01-13 11:34:15,339 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/moment-timezone.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,343 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jstz.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/jstz.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'jstz.js')}, predicates: '' 2015-01-13 11:34:15,343 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jstz.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,347 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/moment-with-langs.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/moment-with-langs.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'moment-with-langs.js')}, predicates: '' 2015-01-13 11:34:15,348 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/moment-with-langs.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,352 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jwz.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/jwz.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'jwz.js')}, predicates: '' 2015-01-13 11:34:15,353 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/jwz.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,358 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/moment-timezone-data.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/moment-timezone-data.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'moment-timezone-data.js')}, predicates: '' 2015-01-13 11:34:15,358 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/moment-timezone-data.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,363 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/Markdown.Converter.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/Markdown.Converter.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'Markdown.Converter.js')}, predicates: '' 2015-01-13 11:34:15,363 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/Markdown.Converter.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,374 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/polyfills/autofill-event.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/polyfills/autofill-event.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'polyfills', u'autofill-event.js')}, predicates: '' 2015-01-13 11:34:15,375 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/polyfills/autofill-event.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,381 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/unorm.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/unorm.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'unorm.js')}, predicates: '' 2015-01-13 11:34:15,381 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/unorm.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,388 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/uuid.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/uuid.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'uuid.js')}, predicates: '' 2015-01-13 11:34:15,388 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/uuid.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,392 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/katex/katex.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/katex/katex.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'katex', u'katex.js')}, predicates: '' 2015-01-13 11:34:15,392 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/katex/katex.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,397 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/ng-tags-input.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/ng-tags-input.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'ng-tags-input.js')}, predicates: '' 2015-01-13 11:34:15,397 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/ng-tags-input.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,402 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/plugin/bridge.js?816ad017; route_name: 'assets/', path_info: u'/assets/scripts/plugin/bridge.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'plugin', u'bridge.js')}, predicates: '' 2015-01-13 11:34:15,402 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/plugin/bridge.js?816ad017 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,406 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.auth.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.auth.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.auth.js')}, predicates: '' 2015-01-13 11:34:15,407 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.auth.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,414 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/plugin/discovery.js?e0a0834a; route_name: 'assets/', path_info: u'/assets/scripts/plugin/discovery.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'plugin', u'discovery.js')}, predicates: '' 2015-01-13 11:34:15,414 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/plugin/discovery.js?e0a0834a (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,418 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.permissions.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.permissions.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.permissions.js')}, predicates: '' 2015-01-13 11:34:15,419 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.permissions.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,423 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.store.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/annotator.store.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'annotator.store.js')}, predicates: '' 2015-01-13 11:34:15,423 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/annotator.store.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,427 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/plugin/threading.js?54afc627; route_name: 'assets/', path_info: u'/assets/scripts/plugin/threading.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'plugin', u'threading.js')}, predicates: '' 2015-01-13 11:34:15,428 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/plugin/threading.js?54afc627 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,431 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/app.js?96f2d704; route_name: 'assets/', path_info: u'/assets/scripts/app.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'app.js')}, predicates: '' 2015-01-13 11:34:15,432 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/app.js?96f2d704 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,436 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-bootstrap.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/angular-bootstrap.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'angular-bootstrap.js')}, predicates: '' 2015-01-13 11:34:15,436 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-bootstrap.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,442 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/helpers.js?e6a49b82; route_name: 'assets/', path_info: u'/assets/scripts/helpers.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'helpers.js')}, predicates: '' 2015-01-13 11:34:15,443 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/helpers.js?e6a49b82 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,446 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/session.js?99287788; route_name: 'assets/', path_info: u'/assets/scripts/session.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'session.js')}, predicates: '' 2015-01-13 11:34:15,446 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/session.js?99287788 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,450 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-resource.js; route_name: 'assets/', path_info: u'/assets/scripts/vendor/angular-resource.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'vendor', u'angular-resource.js')}, predicates: '' 2015-01-13 11:34:15,450 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/vendor/angular-resource.js (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,456 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/assets/scripts/account.js?c0eda1c3; route_name: 'assets/', path_info: u'/assets/scripts/account.js', pattern: 'assets/_subpath', matchdict: {'subpath': (u'scripts', u'account.js')}, predicates: '' 2015-01-13 11:34:15,456 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/assets/scripts/account.js?c0eda1c3 (view name u'' against context {}): Allowed (NO_PERMISSION_REQUIRED) 2015-01-13 11:34:15,958 [6359] [h:DEBUG] no route matched for url http://helene.library.uvic.ca:5000/api/ 2015-01-13 11:34:15,959 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/api/ (view name u'' against context {}): Allowed (no permission registered) 2015-01-13 11:34:15,979 [6359] [h:DEBUG] no route matched for url http://helene.library.uvic.ca:5000/app 2015-01-13 11:34:15,981 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/app (view name u'app' against context {}): Allowed (no permission registered) 2015-01-13 11:34:16,156 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/favicon.ico; route_name: 'favicon', path_info: u'/favicon.ico', pattern: '/favicon.ico', matchdict: {}, predicates: '' 2015-01-13 11:34:16,156 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/favicon.ico (view name u'' against context {}): Allowed (no permission registered) 2015-01-13 11:34:16,223 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/ws?csrf_token=2634adbb30ba5690360aaf4ed74624777ded7e5d; route_name: 'ws', path_info: u'/ws', pattern: 'ws', matchdict: {}, predicates: '' 2015-01-13 11:34:16,224 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/ws?csrf_token=2634adbb30ba5690360aaf4ed74624777ded7e5d (view name u'' against context {}): Allowed (no permission registered) 2015-01-13 11:34:16,417 [6359] [h:DEBUG] no route matched for url http://helene.library.uvic.ca:5000/api/search?limit=1000&uri=http%3A%2F%2Fhelene.library.uvic.ca%3A5000%2F 2015-01-13 11:34:16,418 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/api/search?limit=1000&uri=http%3A%2F%2Fhelene.library.uvic.ca%3A5000%2F (view name u'search' against context {}): Allowed (no permission registered) 2015-01-13 11:34:16,418 [6359] [h:DEBUG] pyramid.authentication.SessionAuthenticationPolicy.authenticated_userid: call to unauthenticated_userid returned None; returning None 2015-01-13 11:34:16,418 [6359] [h:DEBUG] h.api.OAuthAuthenticationPolicy.authenticated_userid: call to unauthenticated_userid returned None; returning None 2015-01-13 11:34:16,419 [6359] [h.api:DEBUG] Searching with user=None, for uri=None 2015-01-13 11:34:42,018 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/ws?csrf_token=49f2ae99bf39bb836f7157220c6c41c4bac4119f; route_name: 'ws', path_info: u'/ws', pattern: 'ws', matchdict: {}, predicates: '' 2015-01-13 11:34:42,019 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/ws?csrf_token=49f2ae99bf39bb836f7157220c6c41c4bac4119f (view name u'' against context {}): Allowed (no permission registered) 2015-01-13 11:34:42,023 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/ws?csrf_token=49f2ae99bf39bb836f7157220c6c41c4bac4119f (view name u'' against context <BadCSRFToken at 0x7f1bbb06d230 400 Bad CSRF Token>): Allowed (no permission registered) 2015-01-13 11:37:26,338 [6359] [h:DEBUG] no route matched for url http://helene.library.uvic.ca:5000/app?__formid**=register 2015-01-13 11:37:26,340 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/app?formid=register (view name u'app' against context {}): Allowed (no permission registered) Traceback (most recent call last): File "/var/www/h/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 508, in handle_one_response self.run_application() File "/var/www/h/local/lib/python2.7/site-packages/ws4py/server/geventserver.py", line 62, in run_application gevent.pywsgi.WSGIHandler.run_application(self) File "/var/www/h/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 494, in run_application self.result = self.application(self.environ, self.start_response) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/router.py", line 242, in call response = self.invoke_subrequest(request, use_tweens=True) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/router.py", line 217, in invoke_subrequest response = handle_request(request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid_debugtoolbar/toolbar.py", line 166, in toolbar_tween return handler(request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/tweens.py", line 21, in excview_tween response = handler(request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid_tm/init.py", line 95, in tm_tween reraise(_exc_info) File "/var/www/h/local/lib/python2.7/site-packages/pyramid_tm/init.py", line 76, in tm_tween response = handler(request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/router.py", line 163, in handle_request response = view_callable(context, request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/config/views.py", line 596, in call return view(context, request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/config/views.py", line 329, in attr_view return view(context, request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/config/views.py", line 305, in predicate_wrapper return view(context, request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/config/views.py", line 287, in _authdebug_view return view(context, request) File "/var/www/h/local/lib/python2.7/site-packages/pyramid/config/views.py", line 355, in rendered_view result = view(context, request) File "/var/www/h/h/auth/local/views.py", line 142, in wrapper result = meth() File "/var/www/h/h/auth/local/views.py", line 226, in register result = super(RegisterController, self).register() File "/var/www/h/local/lib/python2.7/site-packages/horus/views/init.py", line 372, in register captured = self.form.validate(controls) File "/var/www/h/local/lib/python2.7/site-packages/deform/field.py", line 602, in validate return self.validate_pstruct(pstruct) File "/var/www/h/local/lib/python2.7/site-packages/deform/field.py", line 637, in validate_pstruct appstruct = self.schema.deserialize(cstruct) File "/var/www/h/local/lib/python2.7/site-packages/colander/init.py", line 1921, in deserialize appstruct = self.typ.deserialize(self, cstruct) File "/var/www/h/local/lib/python2.7/site-packages/colander/init.py", line 608, in deserialize return self._impl(node, cstruct, callback) File "/var/www/h/local/lib/python2.7/site-packages/colander/init.py", line 566, in _impl sub_result = callback(subnode, subval) File "/var/www/h/local/lib/python2.7/site-packages/colander/init.py", line 606, in callback return subnode.deserialize(subcstruct) File "/var/www/h/local/lib/python2.7/site-packages/colander/init.py", line 1943, in deserialize self.validator(self, appstruct) File "/var/www/h/local/lib/python2.7/site-packages/colander/init.py", line 198, in call validator(node, value) File "/var/www/h/h/auth/local/schemas.py", line 38, in unique_username if query.filter(user_ctor.username.ilike(value)).count(): File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2640, in count return self.from_self(col).scalar() File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2426, in scalar ret = self.one() File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2395, in one ret = list(self) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2438, in iter return self._execute_and_instances(context) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2453, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 729, in execute return meth(self, multiparams, params) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 322, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 826, in _execute_clauseelement compiled_sql, distilled_params File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 958, in _execute_context context) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1159, in _handle_dbapi_exception exc_info File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause reraise(type(exception), exception, tb=exc_tb) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 951, in _execute_context context) File "/var/www/h/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 436, in doexecute cursor.execute(statement, parameters) OperationalError: (OperationalError) no such table: user u'SELECT count() AS count_1 \nFROM (SELECT user.password AS user_password, user.status AS user_status, user.username AS user_username, user.registered_date AS user_registered_date, user.last_login_date AS user_last_login_date, user.security_code AS user_security_code, user.salt AS user_salt, user.email AS user_email, user.activation_id AS user_activation_id, user.id AS user_id \nFROM user \nWHERE lower(user.username) LIKE lower(?)) AS anon_1' (u'dewolfe002',) {'CONTENT_TYPE': 'application/x-www-form-urlencoded;charset=utf-8', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPACCEPT': 'application/json, text/plain, /_', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'utma=153100668.1931594976.1412794117.1418863976.1418930429.19; utmz=153100668.1418841341.17.7.utmccn=(referral)|utmcsr=collaboration.canarie.ca|utmcct=/wayf/|utmcmd=referral; _ga=GA1.2.956812140.1412186579; XSRF-TOKEN=2634adbb30ba5690360aaf4ed74624777ded7e5d; session=tDtzsT5NaqI_m2uulSUTTcC7ntPeD6dqSiYgXspGernCaapgSJvmgiEHm6sxplReNx70pQ_sJJJKJ0mZxwp4OIACSlJztVRHQdUtAzp_7Hh9cQFVB19jc3JmdF9xAlgoAAAAMjYzNGFkYmIzMGJhNTY5MDM2MGFhZjRlZDc0NjI0Nzc3ZGVkN2U1ZHEDc4dxBC4', 'HTTP_HOST': 'helene.library.uvic.ca:5000', 'HTTP_PRAGMA': 'no-cache', 'HTTP_REFERER': 'http://helene.library.uvic.ca:5000/viewer', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0', 'HTTP_X_CSRF_TOKEN': '2634adbb30ba5690360aaf4ed74624777ded7e5d', 'PATH_INFO': '/app', 'QUERY_STRING': 'formid=register', 'RAW_URI': '/app?formid=register', 'REMOTE_ADDR': '142.104.132.154', 'REMOTE_PORT': '54392', 'REQUEST_METHOD': 'POST', 'SCRIPT_NAME': '', 'SERVER_NAME': 'helene.library.uvic.ca', 'SERVER_PORT': '5000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'gevent/1.0.1 gunicorn/19.1.1', 'gunicorn.sock': <socket at 0x7f1bc0b27850 fileno=11 sock=142.104.145.9:5000 peer=142.104.132.154:54392>, 'webob._body_file': (<_io.BufferedReader>, <gevent.pywsgi.Input object at 0x7f1bbb083dd0>), 'webob._parsed_cookies': ({u'XSRF-TOKEN': u'2634adbb30ba5690360aaf4ed74624777ded7e5d', u'utma': u'153100668.1931594976.1412794117.1418863976.1418930429.19', u'utmz': u'153100668.1418841341.17.7.utmccn=(referral)|utmcsr=collaboration.canarie.ca|utmcct=/wayf/|utmcmd=referral', u'_ga': u'GA1.2.956812140.1412186579', u'session': u'tDtzsT5NaqI_m2uulSUTTcC7ntPeD6dqSiYgXspGernCaapgSJvmgiEHm6sxplReNx70pQ_sJJJKJ0mZxwp4OIACSlJztVRHQdUtAzp_7Hh9cQFVB19jc3JmdF9xAlgoAAAAMjYzNGFkYmIzMGJhNTY5MDM2MGFhZjRlZDc0NjI0Nzc3ZGVkN2U1ZHEDc4dxBC4'}, 'utma=153100668.1931594976.1412794117.1418863976.1418930429.19; utmz=153100668.1418841341.17.7.utmccn=(referral)|utmcsr=collaboration.canarie.ca|utmcct=/wayf/|utmcmd=referral; _ga=GA1.2.956812140.1412186579; XSRF-TOKEN=2634adbb30ba5690360aaf4ed74624777ded7e5d; session=tDtzsT5NaqI_m2uulSUTTcC7ntPeD6dqSiYgXspGernCaapgSJvmgiEHm6sxplReNx70pQ_sJJJKJ0mZxwp4OIACSlJztVRHQdUtAzp_7Hh9cQFVB19jc3JmdF9xAlgoAAAAMjYzNGFkYmIzMGJhNTY5MDM2MGFhZjRlZDc0NjI0Nzc3ZGVkN2U1ZHEDc4dxBC4'), 'webob._parsed_post_vars': (MultiDict([(u'username', u'dewolfe002'), (u'password', '**'), (u'formid__', u'register'), (u'email', u'mikedewolfe@gmail.com')]),

<_io.BufferedReader>), 'webob._parsed_query_vars': (GET([(u'__formid__', u'register')]), '**formid**=register'), 'webob.is_body_readable': True, 'webob.is_body_seekable': False, 'wsgi.errors': , 'wsgi.file_wrapper': , 'wsgi.input': <_io.BufferedReader>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)} failed with OperationalError 2015-01-13 11:37:56,820 [6359] [h:DEBUG] route matched for url http://helene.library.uvic.ca:5000/ws?csrf_token=49f2ae99bf39bb836f7157220c6c41c4bac4119f; route_name: 'ws', path_info: u'/ws', pattern: 'ws', matchdict: {}, predicates: '' 2015-01-13 11:37:56,820 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/ws?csrf_token=49f2ae99bf39bb836f7157220c6c41c4bac4119f (view name u'' against context {}): Allowed (no permission registered) 2015-01-13 11:37:56,821 [6359] [h:DEBUG] debug_authorization of url http://helene.library.uvic.ca:5000/ws?csrf_token=49f2ae99bf39bb836f7157220c6c41c4bac4119f (view name u'' against context ): Allowed (no permission registered)
tilgovi commented 9 years ago

@gergely-ujvari this is the bug you saw on syncbridge, I think.