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

Error registering device #3232

Closed
MCGallaspy opened this issue Mar 10, 2015 · 1 comment
Closed

Error registering device #3232

MCGallaspy opened this issue Mar 10, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@MCGallaspy
Copy link
Contributor

On develop, tried to register a device by navigating to /securesync/register. I expected to be presented with the standard registration page, but instead it barfed out this error:

The error message was: <!DOCTYPE HTML> <html> <head> <!--[if lt IE 9]> <script src="/static/js/html5shiv.js"></script> <![endif]--> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Error | KA Lite: An Offline, Installable Version of Khan Academy</title> <link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css"></link> <link rel="stylesheet" type="text/css" href='/static/css/bootstrap-timepicker.min.css' /> <link rel="stylesheet" type="text/css" href="/static/css/bootstrap-alerts.css"></link> <link rel="stylesheet" type="text/css" href="/static/css/style.css"></link> <link rel="shortcut icon" href="/static/images/favicon.ico"> <script type="text/javascript" src="/static/js/jquery-1.9.1.min.js"></script> <script type="text/javascript" src="/static/js/jquery-ui/jquery-ui.min.js"></script> <script type="text/javascript" src="/static/js/purl.js"></script> <script type="text/javascript" src="/static/js/underscore-min.js"></script> <script type="text/javascript" src="/static/js/backbone-min.js"></script> <script type="text/javascript" src="/static/js/backbone/backbone-tastypie.js"></script> <script type="text/javascript" src="/static/js/bootstrap.min.js"></script> <script type="text/javascript" src='/static/js/bootstrap-timepicker.min.js'></script> <script type="text/javascript" src="/static/js/sprintf.min.js"></script> <script type="text/javascript" src="/static/js/i18n/en.js"></script> <script type="text/javascript" src="/static/js/khan-lite.js"></script> <script> var USER_LOGIN_URL = "/accounts/login/"; var CURRENT_LANGUAGE = "en"; var DELETE_USERS_URL = "/securesync/api/delete_users"; var DELETE_GROUPS_URL = "/securesync/api/group_delete"; var MOVE_TO_GROUP_URL = "/securesync/api/move_to_group"; var SERVER_INFO_PATH = "/securesync/api/info"; $(function() { $(".header__horizontal-menu__right").addClass("js").before('<div id="menu">&#9776;</div>'); $("#menu").click(function(){ $(".header__horizontal-menu__right").toggle(); }); $(window).resize(function(){ if(window.innerWidth > 768) { $(".header__horizontal-menu__right").removeAttr("style"); } }); // Code below overwrites khan-lite.js setup to ensure that the correct csrftoken is passed for the central server. var csrftoken = getCookie("csrftoken_central") || ""; $.ajaxSetup({ cache: false, crossDomain: false, beforeSend: function(xhr, settings) { if (!csrfSafeMethod(settings.type)) { xhr.setRequestHeader("X-CSRFToken", csrftoken); } } }); }); </script> <!-- Imports for handlebars, our JS templating engine --> <script src="/static/js/handlebars/handlebars-v1.3.0.js"></script> <script src="/static/js/handlebars/handlebars-helpers.js"></script> <script src="/static/js/handlebars/handlebars-wrapper.js"></script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-36937407-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); // track time on site/page more accurately (function (tos) { window.setInterval(function () { tos = (function (t) { return t[0] == 50 ? (parseInt(t[1]) + 1) + ':00' : (t[1] || '0') + ':' + (parseInt(t[0]) + 10); })(tos.split(':').reverse()); window.pageTracker ? pageTracker._trackEvent('Time', 'Log', tos) : _gaq.push(['_trackEvent', 'Time', 'Log', tos]); }, 10000); })('00'); // track outbound link clicks (function($) { $(function() { $('a[href^="http"]:not([href*="' + document.domain + '"])').click(function(e) { // When a user clicks an external link if ($(this).attr('target') !== '_blank') { e.preventDefault(); // If the link is not set to target='_blank' // set a 300ms delay before loading this page // which allows Google Analytics to register the event (function(a) { setTimeout(function() { document.location = a.attr('href'); },300) })($(this)); } window.pageTracker ? pageTracker._trackEvent('Outbound', $(this).attr('href'), "#" + $(this).closest('[id!=""]').attr('id')) : _gaq.push(['_trackEvent', 'Outbound', $(this).attr('href'), "#" + $(this).closest('[id!=""]').attr('id')]); }); }) })(jQuery) // track real user loadtimes in Pingdom var _prum = [['id', '53619b09abe53d25686956f7'], ['mark', 'firstbyte', (new Date()).getTime()]]; (function() { var s = document.getElementsByTagName('script')[0] , p = document.createElement('script'); p.async = 'async'; p.src = '//rum-static.pingdom.net/prum.min.js'; s.parentNode.insertBefore(p, s); })(); </script> </head> <body> <div class="row-fluid" id="navbar-container"> <div class="max-width-container"> <div class="row-fluid"> <div class="span12"> <ul class="header__horizontal-menu"> <li class="header__logo"><a href="/"><img src="/static/images/horizontal-logo-small.png" alt="Home"></a></li> <ul class="header__horizontal-menu__right"> <li> <a href="https://learningequality.org/ka-lite/" target="_blank"> About </a> </li> <li> <a href="/accounts/login/" id="login" class=""> Login </a> </li> <li> <a href="/accounts/register/" id="sign_up" class=""> Sign Up </a> </li> </ul> </ul> </div> </div> </div> </div> <div class="container-fluid"> <div class="row-fluid content"> <div class="span12 content-padding"> <div id="message_container"> <!--Ajax messages get inserted here--> </div> <h1>Error</h1> <p>Sorry, but there was an error while trying to load the page.</p> </div> </div> <div class="row-fluid"> <!-- copyright footer --> <div class="span12 float-right"> <p> &copy; 2014 <a href="//learningequality.org/about/">Foundation for Learning Equality, Inc</a> </p> <p> Except where otherwise noted, content on this site is licensed under a<br/> <a href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International license.</a> </p> </div> </div> </div> <!-- .container --> </body> </html>
@MCGallaspy
Copy link
Contributor Author

Duplicate of #3197.

@MCGallaspy MCGallaspy removed the has PR label Mar 12, 2015
aronasorman added a commit that referenced this issue Mar 13, 2015
Fixes #3232 (hopefully): handle metadata check when Device is imported.
benjaoming pushed a commit to benjaoming/ka-lite that referenced this issue Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants