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

Removing unneeded services causes errors #13

Open
OscarGodson opened this issue May 3, 2013 · 2 comments
Open

Removing unneeded services causes errors #13

OscarGodson opened this issue May 3, 2013 · 2 comments

Comments

@OscarGodson
Copy link
Member

If I only use Twitter, for example, and delete the facebook or yammer block the app fails to even start.

@larzconwell
Copy link
Contributor

Can I get the error message when you try to start the app?

I'm guess it's something about it can't find the modules for facebook and yammer. If so, remove the ones you don't want from the variable SUPPORTED_SERVICES in app/helpers/passport/actions.js.

@OscarGodson
Copy link
Member Author

[Thu, 09 May 2013 07:27:54 GMT] INFO Creating 1 worker process.

/Users/oscar/Dropbox/projects/piggybank/node_modules/passport-facebook/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth2.js:66
  if (!options.clientID) throw new Error('OAuth2Strategy requires a clientID o
                               ^
Error: OAuth2Strategy requires a clientID option
    at Strategy.OAuth2Strategy (/Users/oscar/Dropbox/projects/piggybank/node_modules/passport-facebook/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth2.js:66:32)
    at new Strategy (/Users/oscar/Dropbox/projects/piggybank/node_modules/passport-facebook/lib/passport-facebook/strategy.js:49:18)
    at self (/Users/oscar/Dropbox/projects/piggybank/app/helpers/passport/actions.js:24:16)
    at Array.forEach (native)
    at Object.<anonymous> (/Users/oscar/Dropbox/projects/piggybank/app/helpers/passport/actions.js:15:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
[Thu, 09 May 2013 07:27:54 GMT] ERROR Worker 10369 died.

But yeah, removing them from that array fixed it! Maybe guard against it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants