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

Can't login #22

Closed
OrfeasLitos opened this issue Feb 5, 2019 · 4 comments
Closed

Can't login #22

OrfeasLitos opened this issue Feb 5, 2019 · 4 comments

Comments

@OrfeasLitos
Copy link
Member

Upon clicking login, the page hangs and I get the following in the thing that's running in api:

UnhandledPromiseRejectionWarning: SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432
    at connection.connect.err (/blabla/repositories/blockchain-course/db/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:116:24)
    at Connection.connectingErrorHandler (/blabla/repositories/blockchain-course/db/node_modules/pg/lib/client.js:123:14)
    at Connection.emit (events.js:197:13)
    at Socket.reportStreamError (/blabla/repositories/blockchain-course/db/node_modules/pg/lib/connection.js:71:10)
    at Socket.emit (events.js:197:13)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at processTicksAndRejections (internal/process/next_tick.js:76:17)
@dionyziz
Copy link
Member

dionyziz commented Feb 6, 2019 via email

@cnasikas
Copy link
Member

cnasikas commented Feb 6, 2019

That error indicates that you can connect to postgres. Are you sure that postgres is started and listens to port 5432 ?

@cnasikas
Copy link
Member

cnasikas commented Feb 6, 2019

Would you mind sharing your DB_URI env variable (without sensitive information)

@OrfeasLitos
Copy link
Member Author

Most probably I forgot to open the DB, my bad. But the error should have been more helpful, see #23.

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

3 participants