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

TypeError: OAuth2Strategy requires a clientID option #12

Open
tsunghao-huang opened this issue Dec 5, 2017 · 1 comment
Open

TypeError: OAuth2Strategy requires a clientID option #12

tsunghao-huang opened this issue Dec 5, 2017 · 1 comment

Comments

@tsunghao-huang
Copy link

tsunghao-huang commented Dec 5, 2017

Hi, I got into trouble when trying to setup the local mysql. when I run the second commands(for the first line is ok, but not for the second):
mysql -uroot os_moderator < packages/backend-core/seed/initial-database.sql
./bin/osmod migrate

I got the error message below. Any help is appreciated.

Response

conversationai-moderator-master/packages/backend-core/node_modules/passport-oauth2/lib/strategy.js:82
if (!options.clientID) { throw new TypeError('OAuth2Strategy requires a clientID option'); }
^

TypeError: OAuth2Strategy requires a clientID option
at Strategy.OAuth2Strategy (./conversationai-moderator-master/packages/backend-core/node_modules/passport-oauth2/lib/strategy.js:82:34)
at new Strategy (./conversationai-moderator-master/packages/backend-core/node_modules/passport-google-oauth20/lib/strategy.js:52:18)
at Object. (./conversationai-moderator-master/packages/backend-core/dist/domain/auth/providers/google.js:91:26)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (./conversationai-moderator-master/packages/backend-core/dist/domain/auth/providers/index.js:21:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)

@nullhook
Copy link

nullhook commented Dec 27, 2017

@Witsung I get the same error when I run the migrate command. Have you gotten around this issue yet?

RufusHamade referenced this issue in RufusHamade/conversationai-moderator-1 Sep 10, 2018
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