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

Error run server #91

Open
lexcorp opened this issue Sep 21, 2023 · 0 comments
Open

Error run server #91

lexcorp opened this issue Sep 21, 2023 · 0 comments

Comments

@lexcorp
Copy link

lexcorp commented Sep 21, 2023

kahoot-clone]$ npm run start-server

[email protected] start-server
nodemon -e js,jsx,html back-end/server.js

[nodemon] 2.0.6
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,jsx,html
[nodemon] starting node back-end/server.js
node:internal/validators:163
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:399:5)
at validateString (node:internal/validators:163:11)
at Url.parse (node:url:195:3)
at Object.urlParse [as parse] (node:url:166:13)
at new Sequelize (/home/admin/Descargas/quizzes/kahoot-clone/back-end/node_modules/sequelize/lib/sequelize.js:185:28)
at FactoryDefinition.configureMainDatabaseAdapter [as factory] (/home/admin/Descargas/quizzes/kahoot-clone/back-end/src/config/di.js:15:10)
at FactoryDefinition._this.resolve (/home/admin/Descargas/quizzes/kahoot-clone/back-end/node_modules/rsdi/definitions/FactoryDefinition.js:28:26)
at DIContainer.get (/home/admin/Descargas/quizzes/kahoot-clone/back-end/node_modules/rsdi/DIContainer.js:36:42)
at FactoryDefinition.configureSession [as factory] (/home/admin/Descargas/quizzes/kahoot-clone/back-end/src/config/di.js:22:31)
at FactoryDefinition._this.resolve (/home/admin/Descargas/quizzes/kahoot-clone/back-end/node_modules/rsdi/definitions/FactoryDefinition.js:28:26) {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.0.0
[nodemon] app crashed - waiting for file changes before starting...

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

1 participant