Open connor opened 12 years ago
Move the stuff in lines 34-42 up to line 10.
Thanks @mrtidy that's fixed it for me. :beer:
Yep - fixed that issue for me. Thank you!
However, after I go through the auth process, it looks like everyauth is trying to do something with the callback provided to github, and it's failing. I haven't had a chance yet to dig into everymodule, but this is what's happending.
The URL it's redirecting me to is: http://localhost:3000/auth/github/callback?code=MY_CODE&state=
, and I'm getting the following error in the console:
Warning: Try to pass only Errors
/Users/cnnr/Desktop/marky/node_modules/everyauth/lib/modules/everymodule.js:348
throw err;
^
Error: {"statusCode":404,"data":"<!DOCTYPE html>\n<html>\n <head prefix=\"og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#\">\n <meta charset='utf-8'>\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <title>404 · GitHub</title>\n <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/opensearch.xml\" title=\"GitHub\" />\n <link rel=\"fluid-icon\" href=\"https://github.com/fluidicon.png\" title=\"GitHub\" />\n <link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\" />\n <link rel=\"apple-touch-icon-precomposed\" sizes=\"57x57\" href=\"apple-touch-icon-114.png\" />\n <link rel=\"apple-touch-icon-precomposed\" sizes=\"114x114\" href=\"apple-touch-icon-114.png\" />\n <link rel=\"apple-touch-icon-precomposed\" sizes=\"72x72\" href=\"apple-touch-icon-144.png\" />\n <link rel=\"apple-touch-icon-precomposed\" sizes=\"144x144\" href=\"apple-touch-icon-144.png\" />\n\n \n \n\n \n\n <link href=\"https://a248.e.akamai.net/assets.github.com/assets/github-93e28295e9de4310090c4fe2ed0851ddde77ddfa.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n <link href=\"https://a248.e.akamai.net/assets.github.com/assets/github2-2ef148486376675ad2c42348f04cbb83dcc5a10e.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n \n \n\n\n <script src=\"https://a248.e.akamai.net/assets.github.com/assets/frameworks-c86655d74d3a1c4761cfc641f9400895db04e2f8.js\" type=\"text/javascript\"></script>\n \n <script defer=\"defer\" src=\"https://a248.e.akamai.net/assets.github.com/assets/github-9ba225d9e6c45ea1219dfb0a4bf829b03d47c271.js\" type=\"text/javascript\"></script>\n \n \n\n \n </head>\n\n\n <body class=\"logged_out env-production \" data-blob-contribs-enabled=\"yes\">\n <div id=\"wrapper\">\n\n \n \n \n\n <div id=\"header\" class=\"true clearfix\">\n <div class=\"container clearfix\">\n <a class=\"site-logo\" href=\"https://github.com/\">\n <!--[if IE]>\n <img alt=\"GitHub\" class=\"github-logo\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7.png?1323882728\" />\n <img alt=\"GitHub\" class=\"github-logo-hover\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7-hover.png?1324325369\" />\n <![endif]-->\n <img alt=\"GitHub\" class=\"github-logo-4x\" height=\"30\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x.png?1337118067\" />\n <img alt=\"GitHub\" class=\"github-logo-4x-hover\" height=\"30\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/header/logov7@4x-hover.png?1337118067\" />\n </a>\n\n\n <!--\n make sure to use fully qualified URLs here since this nav\n is used on error pages on other domains\n -->\n <ul class=\"top-nav logged_out\">\n <li class=\"pricing\"><a href=\"https://github.com/plans\">Signup and Pricing</a></li>\n <li class=\"explore\"><a href=\"https://github.com/explore\">Explore GitHub</a></li>\n <li class=\"features\"><a href=\"https://github.com/features\">Features</a></li>\n <li class=\"blog\"><a href=\"https://github.com/blog\">Blog</a></li>\n <li class=\"login\"><a href=\"https://github.com/login?return_to=%2Fapi%2Fv2%2Fjson%2Fuser%2Fshow%3Faccess_token%3D386441875522b5a4ee0c56a9f5956302095397cc\">Sign in</a></li>\n </ul>\n\n\n\n \n </div>\n </div>\n\n \n\n <div class=\"site clearfix\">\n <div id=\"site-container\" class=\"container\" data-pjax-container>\n \n\n<style type=\"text/css\">\n #header{\n border-bottom: 0;\n }\n .site {\n padding: 0;\n }\n #site-container {\n width: 100%;\n }\n * {\n margin: 0px;\n padding: 0px;\n }\n #parallax_wrapper {\n position: relative;\n z-index: 0;\n }\n #parallax_field{\n overflow: hidden;\n position: absolute;\n left: 0;\n top: 0;\n height: 370px;\n width: 100%;\n }\n #parallax_field #parallax_bg {\n position: absolute;\n top: -20px;\n left: -20px;\n width: 110%;\n height: 425px;\n z-index: 1;\n }\n #parallax_illustration {\n display: block;\n margin: 0 auto;\n width: 940px;\n height: 370px;\n position: relative;\n overflow: hidden;\n clear: both;\n }\n #parallax_illustration #parallax_error_text {\n position: absolute;\n top: 72px;\n left: 72px;\n z-index: 10;\n }\n #parallax_illustration #parallax_octocat {\n position: absolute;\n top: 94px;\n left: 356px;\n z-index: 9;\n }\n #parallax_illustration #parallax_speeder {\n position: absolute;\n top: 150px;\n left: 432px;\n z-index: 8;\n }\n #parallax_illustration #parallax_octocatshadow {\n position: absolute;\n top: 297px;\n left: 371px;\n z-index: 7;\n }\n #parallax_illustration #parallax_speedershadow {\n position: absolute;\n top: 263px;\n left: 442px;\n z-index: 6;\n }\n #parallax_illustration #parallax_building_1 {\n position: absolute;\n top: 73px;\n left: 467px;\n z-index: 5;\n }\n #parallax_illustration #parallax_building_2 {\n position: absolute;\n top: 113px;\n left: 762px;\n z-index: 4;\n }\n #footer-push {\n height: 280px;\n }\n #footer {\n margin-top: 0px;\n z-index: 12;\n }\n</style>\n\n<div id=\"parallax_wrapper\">\n\n<div id=\"parallax_field\">\n <img alt=\"building\" class=\"js-plaxify\" data-invert=\"true\" data-xrange=\"0\" data-yrange=\"20\" height=\"415\" id=\"parallax_bg\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_bg.jpg?1310086001\" width=\"940\" />\n</div>\n<div id=\"parallax_illustration\">\n <img alt=\"404 | “This is not the web page you are looking for”\" class=\"js-plaxify\" data-xrange=\"20\" data-yrange=\"10\" height=\"249\" id=\"parallax_error_text\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_errortext.png?1310086001\" width=\"271\" />\n <img alt=\"Octobi Wan Catnobi\" class=\"js-plaxify\" data-xrange=\"10\" data-yrange=\"10\" height=\"230\" id=\"parallax_octocat\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_octocat.png?1310086001\" width=\"188\" />\n <img alt=\"land speeder\" class=\"js-plaxify\" data-xrange=\"10\" data-yrange=\"10\" height=\"156\" id=\"parallax_speeder\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_speeder.png?1310086001\" width=\"440\" />\n <img alt=\"Octobi Wan Catnobi's shadow\" class=\"js-plaxify\" data-xrange=\"10\" data-yrange=\"10\" height=\"49\" id=\"parallax_octocatshadow\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_octocatshadow.png?1310086001\" width=\"166\" />\n <img alt=\"land speeder's shadow\" class=\"js-plaxify\" data-xrange=\"10\" data-yrange=\"10\" height=\"75\" id=\"parallax_speedershadow\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_speedershadow.png?1310086001\" width=\"430\" />\n <img alt=\"building\" class=\"js-plaxify\" data-invert=\"true\" data-xrange=\"50\" data-yrange=\"20\" height=\"123\" id=\"parallax_building_1\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_building_1.png?1310086001\" width=\"304\" />\n <img alt=\"building\" class=\"js-plaxify\" data-invert=\"true\" data-xrange=\"75\" data-yrange=\"30\" height=\"50\" id=\"parallax_building_2\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/404/parallax_building_2.png?1310086001\" width=\"116\" />\n</div>\n\n</div>\n\n </div>\n <div class=\"context-overlay\"></div>\n </div>\n <div id=\"footer-push\"></div><!-- hack for sticky footer -->\n </div><!-- end of wrapper - hack for sticky footer -->\n\n <!-- footer -->\n <div id=\"footer\" >\n \n <div class=\"upper_footer\">\n <div class=\"container clearfix\">\n\n <!--[if IE]><h4 id=\"blacktocat_ie\">GitHub Links</h4><![endif]-->\n <![if !IE]><h4 id=\"blacktocat\">GitHub Links</h4><![endif]>\n\n <ul class=\"footer_nav\">\n <h4>GitHub</h4>\n <li><a href=\"https://github.com/about\">About</a></li>\n <li><a href=\"https://github.com/blog\">Blog</a></li>\n <li><a href=\"https://github.com/features\">Features</a></li>\n <li><a href=\"https://github.com/contact\">Contact & Support</a></li>\n <li><a href=\"https://github.com/training\">Training</a></li>\n <li><a href=\"http://enterprise.github.com/\">GitHub Enterprise</a></li>\n <li><a href=\"http://status.github.com/\">Site Status</a></li>\n </ul>\n\n <ul class=\"footer_nav\">\n <h4>Clients</h4>\n <li><a href=\"http://mac.github.com/\">GitHub for Mac</a></li>\n <li><a href=\"http://windows.github.com/\">GitHub for Windows</a></li>\n <li><a href=\"http://eclipse.github.com/\">GitHub for Eclipse</a></li>\n <li><a href=\"http://mobile.github.com/\">GitHub Mobile Apps</a></li>\n </ul>\n\n <ul class=\"footer_nav\">\n <h4>Tools</h4>\n <li><a href=\"http://get.gaug.es/\">Gauges: Web analytics</a></li>\n <li><a href=\"http://speakerdeck.com\">Speaker Deck: Presentations</a></li>\n <li><a href=\"https://gist.github.com\">Gist: Code snippets</a></li>\n\n <h4 class=\"second\">Extras</h4>\n <li><a href=\"http://jobs.github.com/\">Job Board</a></li>\n <li><a href=\"http://shop.github.com/\">GitHub Shop</a></li>\n <li><a href=\"http://octodex.github.com/\">The Octodex</a></li>\n </ul>\n\n <ul class=\"footer_nav\">\n <h4>Documentation</h4>\n <li><a href=\"http://help.github.com/\">GitHub Help</a></li>\n <li><a href=\"http://developer.github.com/\">Developer API</a></li>\n <li><a href=\"http://github.github.com/github-flavored-markdown/\">GitHub Flavored Markdown</a></li>\n <li><a href=\"http://pages.github.com/\">GitHub Pages</a></li>\n </ul>\n\n </div><!-- /.site -->\n </div><!-- /.upper_footer -->\n\n<div class=\"lower_footer\">\n <div class=\"container clearfix\">\n <!--[if IE]><div id=\"legal_ie\"><![endif]-->\n <![if !IE]><div id=\"legal\"><![endif]>\n <ul>\n <li><a href=\"https://github.com/site/terms\">Terms of Service</a></li>\n <li><a href=\"https://github.com/site/privacy\">Privacy</a></li>\n <li><a href=\"https://github.com/security\">Security</a></li>\n </ul>\n\n <p>© 2012 <span title=\"0.03348s from fe7.rs.github.com\">GitHub</span> Inc. All rights reserved.</p>\n </div><!-- /#legal or /#legal_ie-->\n\n <div class=\"sponsor\">\n <a href=\"http://www.rackspace.com\" class=\"logo\">\n <img alt=\"Dedicated Server\" height=\"36\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/footer/rackspaces_logo.png?1329521039\" width=\"38\" />\n </a>\n Powered by the <a href=\"http://www.rackspace.com \">Dedicated\n Servers</a> and<br/> <a href=\"http://www.rackspacecloud.com\">Cloud\n Computing</a> of Rackspace Hosting<span>®</span>\n </div>\n </div><!-- /.site -->\n</div><!-- /.lower_footer -->\n\n </div><!-- /#footer -->\n\n \n\n<div id=\"keyboard_shortcuts_pane\" class=\"instapaper_ignore readability-extra\" style=\"display:none\">\n <h2>Keyboard Shortcuts <small><a href=\"#\" class=\"js-see-all-keyboard-shortcuts\">(see all)</a></small></h2>\n\n <div class=\"columns threecols\">\n <div class=\"column first\">\n <h3>Site wide shortcuts</h3>\n <dl class=\"keyboard-mappings\">\n <dt>s</dt>\n <dd>Focus site search</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>?</dt>\n <dd>Bring up this help dialog</dd>\n </dl>\n </div><!-- /.column.first -->\n\n <div class=\"column middle\" style='display:none'>\n <h3>Commit list</h3>\n <dl class=\"keyboard-mappings\">\n <dt>j</dt>\n <dd>Move selection down</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>k</dt>\n <dd>Move selection up</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>c <em>or</em> o <em>or</em> enter</dt>\n <dd>Open commit</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>y</dt>\n <dd>Expand URL to its canonical form</dd>\n </dl>\n </div><!-- /.column.first -->\n\n <div class=\"column last\" style='display:none'>\n <h3>Pull request list</h3>\n <dl class=\"keyboard-mappings\">\n <dt>j</dt>\n <dd>Move selection down</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>k</dt>\n <dd>Move selection up</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>o <em>or</em> enter</dt>\n <dd>Open issue</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt><span class=\"platform-mac\">⌘</span><span class=\"platform-other\">ctrl</span> <em>+</em> enter</dt>\n <dd>Submit comment</dd>\n </dl>\n </div><!-- /.columns.last -->\n\n </div><!-- /.columns.equacols -->\n\n <div style='display:none'>\n <div class=\"rule\"></div>\n\n <h3>Issues</h3>\n\n <div class=\"columns threecols\">\n <div class=\"column first\">\n <dl class=\"keyboard-mappings\">\n <dt>j</dt>\n <dd>Move selection down</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>k</dt>\n <dd>Move selection up</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>x</dt>\n <dd>Toggle selection</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>o <em>or</em> enter</dt>\n <dd>Open issue</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt><span class=\"platform-mac\">⌘</span><span class=\"platform-other\">ctrl</span> <em>+</em> enter</dt>\n <dd>Submit comment</dd>\n </dl>\n </div><!-- /.column.first -->\n <div class=\"column last\">\n <dl class=\"keyboard-mappings\">\n <dt>c</dt>\n <dd>Create issue</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>l</dt>\n <dd>Create label</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>i</dt>\n <dd>Back to inbox</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>u</dt>\n <dd>Back to issues</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>/</dt>\n <dd>Focus issues search</dd>\n </dl>\n </div>\n </div>\n </div>\n\n <div style='display:none'>\n <div class=\"rule\"></div>\n\n <h3>Issues Dashboard</h3>\n\n <div class=\"columns threecols\">\n <div c
lass=\"column first\">\n <dl class=\"keyboard-mappings\">\n <dt>j</dt>\n <dd>Move selection down</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>k</dt>\n <dd>Move selection up</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>o <em>or</em> enter</dt>\n <dd>Open issue</dd>\n </dl>\n </div><!-- /.column.first -->\n </div>\n </div>\n\n <div style='display:none'>\n <div class=\"rule\"></div>\n\n <h3>Network Graph</h3>\n <div class=\"columns equacols\">\n <div class=\"column first\">\n <dl class=\"keyboard-mappings\">\n <dt><span class=\"badmono\">←</span> <em>or</em> h</dt>\n <dd>Scroll left</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt><span class=\"badmono\">→</span> <em>or</em> l</dt>\n <dd>Scroll right</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt><span class=\"badmono\">↑</span> <em>or</em> k</dt>\n <dd>Scroll up</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt><span class=\"badmono\">↓</span> <em>or</em> j</dt>\n <dd>Scroll down</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>t</dt>\n <dd>Toggle visibility of head labels</dd>\n </dl>\n </div><!-- /.column.first -->\n <div class=\"column last\">\n <dl class=\"keyboard-mappings\">\n <dt>shift <span class=\"badmono\">←</span> <em>or</em> shift h</dt>\n <dd>Scroll all the way left</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>shift <span class=\"badmono\">→</span> <em>or</em> shift l</dt>\n <dd>Scroll all the way right</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>shift <span class=\"badmono\">↑</span> <em>or</em> shift k</dt>\n <dd>Scroll all the way up</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>shift <span class=\"badmono\">↓</span> <em>or</em> shift j</dt>\n <dd>Scroll all the way down</dd>\n </dl>\n </div><!-- /.column.last -->\n </div>\n </div>\n\n <div style='display:none'>\n <div class=\"rule\"></div>\n <div class=\"columns threecols\">\n <div class=\"column first\" style='display:none'>\n <h3>Source Code Browsing</h3>\n <dl class=\"keyboard-mappings\">\n <dt>t</dt>\n <dd>Activates the file finder</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>l</dt>\n <dd>Jump to line</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>w</dt>\n <dd>Switch branch/tag</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>y</dt>\n <dd>Expand URL to its canonical form</dd>\n </dl>\n </div>\n </div>\n </div>\n\n <div style='display:none'>\n <div class=\"rule\"></div>\n <div class=\"columns threecols\">\n <div class=\"column first\">\n <h3>Browsing Commits</h3>\n <dl class=\"keyboard-mappings\">\n <dt><span class=\"platform-mac\">⌘</span><span class=\"platform-other\">ctrl</span> <em>+</em> enter</dt>\n <dd>Submit comment</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>escape</dt>\n <dd>Close form</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>p</dt>\n <dd>Parent commit</dd>\n </dl>\n <dl class=\"keyboard-mappings\">\n <dt>o</dt>\n <dd>Other parent commit</dd>\n </dl>\n </div>\n </div>\n </div>\n</div>\n\n <div id=\"markdown-help\" class=\"instapaper_ignore readability-extra\">\n <h2>Markdown Cheat Sheet</h2>\n\n <div class=\"cheatsheet-content\">\n\n <div class=\"mod\">\n <div class=\"col\">\n <h3>Format Text</h3>\n <p>Headers</p>\n <pre>\n# This is an <h1> tag\n## This is an <h2> tag\n###### This is an <h6> tag</pre>\n <p>Text styles</p>\n <pre>\n*This text will be italic*\n_This will also be italic_\n**This text will be bold**\n__This will also be bold__\n\n*You **can** combine them*\n</pre>\n </div>\n <div class=\"col\">\n <h3>Lists</h3>\n <p>Unordered</p>\n <pre>\n* Item 1\n* Item 2\n * Item 2a\n * Item 2b</pre>\n <p>Ordered</p>\n <pre>\n1. Item 1\n2. Item 2\n3. Item 3\n * Item 3a\n * Item 3b</pre>\n </div>\n <div class=\"col\">\n <h3>Miscellaneous</h3>\n <p>Images</p>\n <pre>\n![GitHub Logo](/images/logo.png)\nFormat: ![Alt Text](url)\n</pre>\n <p>Links</p>\n <pre>\nhttp://github.com - automatic!\n[GitHub](http://github.com)</pre>\n<p>Blockquotes</p>\n <pre>\nAs Kanye West said:\n\n> We're living the future so\n> the present is our past.\n</pre>\n </div>\n </div>\n <div class=\"rule\"></div>\n\n <h3>Code Examples in Markdown</h3>\n <div class=\"col\">\n <p>Syntax highlighting with <a href=\"http://github.github.com/github-flavored-markdown/\" title=\"GitHub Flavored Markdown\" target=\"_blank\">GFM</a></p>\n <pre>\n```javascript\nfunction fancyAlert(arg) {\n if(arg) {\n $.facebox({div:'#foo'})\n }\n}\n```</pre>\n </div>\n <div class=\"col\">\n <p>Or, indent your code 4 spaces</p>\n <pre>\nHere is a Python code example\nwithout syntax highlighting:\n\n def foo:\n if not bar:\n return true</pre>\n </div>\n <div class=\"col\">\n <p>Inline code for comments</p>\n <pre>\nI think you should use an\n`<addr>` element here instead.</pre>\n </div>\n </div>\n\n </div>\n</div>\n\n\n <div id=\"ajax-error-message\">\n <span class=\"mini-icon mini-icon-exclamation\"></span>\n Something went wrong with that request. Please try again.\n <a href=\"#\" class=\"ajax-error-dismiss\">Dismiss</a>\n </div>\n\n <div id=\"logo-popup\">\n <h2>Looking for the GitHub logo?</h2>\n <ul>\n <li>\n <h4>GitHub Logo</h4>\n <a href=\"http://github-media-downloads.s3.amazonaws.com/GitHub_Logos.zip\"><img alt=\"Github_logo\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/about_page/github_logo.png?1310086001\" /></a>\n <a href=\"http://github-media-downloads.s3.amazonaws.com/GitHub_Logos.zip\" class=\"minibutton btn-download download\">Download</a>\n </li>\n <li>\n <h4>The Octocat</h4>\n <a href=\"http://github-media-downloads.s3.amazonaws.com/Octocats.zip\"><img alt=\"Octocat\" src=\"https://a248.e.akamai.net/assets.github.com/images/modules/about_page/octocat.png?1310086001\" /></a>\n <a href=\"http://github-media-downloads.s3.amazonaws.com/Octocats.zip\" class=\"minibutton btn-download download\">Download</a>\n </li>\n </ul>\n </div>\n\n \n <span id='server_response_time' data-time='0.03518' data-host='fe7'></span>\n </body>\n</html>\n"}
at /Users/cnnr/Desktop/marky/node_modules/everyauth/lib/modules/everymodule.js:346:11
at [object Object].fail (/Users/cnnr/Desktop/marky/node_modules/everyauth/lib/promise.js:53:24)
at /Users/cnnr/Desktop/marky/node_modules/everyauth/lib/modules/github.js:25:25
at passBackControl (/Users/cnnr/Desktop/marky/node_modules/everyauth/node_modules/oauth/lib/oauth2.js:77:9)
at IncomingMessage.<anonymous> (/Users/cnnr/Desktop/marky/node_modules/everyauth/node_modules/oauth/lib/oauth2.js:94:7)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at CleartextStream.ondata (http.js:1150:24)
at CleartextStream._push (tls.js:375:27)
at SecurePair.cycle (tls.js:734:20)
Any ideas? Thank you!
I'm getting the same problem as connor above.
when I run this code, Github sends back the following json: "{"error":"Not Found"}"
when accept header isn't set to json, I get the HTML string for a 404 page as connor shows above
my code variable comes back in step 2, but the state variable is empty, same as connor
what am I missing?
@connor & @georgedyer. I indeed battled that too. The reason behind it is the GitHub API v2 has been depreciated and now taken offline. The code in this repository has been updated to use the GitHub API V3 however it's not been pushed out in a NPM release yet.
As a quick fix for now you have two options:
curl https://raw.github.com/bnoguchi/everyauth/master/lib/modules/github.js > node_modules/everyauth/lib/modules/github.js
)Hopefully @bnoguchi will tag and push a release to NPM shortly.
Ben, you rock. Thank you so much!
thanks, Ben!
@connor @georgedyer Your Welcome :)
Glad i found this fix as i was scratching my head for a few hours.
I installed every auth via: npm git://github.com/bnoguchi/everyauth.git#express3, and i still managed to get an file that wasn't up to date the GitHub API 3. Any chance this could be fixed so that i can easily deploy my app via npm without having to then go in and manually change a file?
Thanks in advance.
JE
I'm trying to use everyauth to authenticate against github. I keep getting the following error though (after clicking on the link with an
href
toauth/github
) --Here is a gist with my code: https://gist.github.com/2641260
Anyone have any ideas? This has been driving me crazy for a little while tonight.
Thanks!