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

Dockerise application #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Dockerise application #17

wants to merge 4 commits into from

Conversation

ryanolee
Copy link
Contributor

This aims to fix #13 and #16 by dock rising and hot loading the application

@tsukimi2
Copy link
Collaborator

@ryanolee I was trying out this branch to make use of the dockerised application. Initially the application ran ok after running "make all". However, when I try entered the login url in my browser (http://0.0.0.0:3000/api/v1/auth/google/callback) (tried it with http://localhost:3000/api/v1/auth/google/callback also), it gave the following error:

mbo_backend | Serverless: ANY /api/v1/auth/google/callback (λ: apiRequest)
mbo_backend | TokenError: Unauthorized
mbo_backend | at Strategy.OAuth2Strategy.parseErrorResponse (/app/node_modules/passport-oauth2/lib/strategy.js:358:12)
mbo_backend | at Strategy.OAuth2Strategy._createOAuthError (/app/node_modules/passport-oauth2/lib/strategy.js:405:16)
mbo_backend | at /app/node_modules/passport-oauth2/lib/strategy.js:175:45
mbo_backend | at /app/node_modules/oauth/lib/oauth2.js:191:18
mbo_backend | at passBackControl (/app/node_modules/oauth/lib/oauth2.js:132:9)
mbo_backend | at IncomingMessage. (/app/node_modules/oauth/lib/oauth2.js:157:7)
mbo_backend | at IncomingMessage.emit (events.js:387:35)
mbo_backend | at IncomingMessage.emit (domain.js:470:12)
mbo_backend | at endReadableNT (internal/streams/readable.js:1317:12)
mbo_backend | at processTicksAndRejections (internal/process/task_queues.js:82:21)

@ryanolee
Copy link
Contributor Author

ryanolee commented Aug 22, 2021

Hi @tsukimi2 ,
Should have fixed this. You might have had the wrong secrets in your dotenv file 🤔

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

Successfully merging this pull request may close these issues.

Properly handle shared connection with database when using serverless offline
2 participants