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 received on creating a user on a self hosted instance #131

Open
CustomIcon opened this issue Jul 30, 2024 · 0 comments
Open

Error received on creating a user on a self hosted instance #131

CustomIcon opened this issue Jul 30, 2024 · 0 comments

Comments

@CustomIcon
Copy link

node@ca84dc82191e:/app/apps/api/dist/src/scripts$ node create-local-user.js [email protected]
(node:78) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
(Use `node --trace-warnings ...` to show where the warning was created)
(node:78) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
{"level":30,"time":1722352284213,"pid":78,"hostname":"ca84dc82191e","msg":"Database connected"}
Error: User validation failed: subscriptionEndsAfter: Path `subscriptionEndsAfter` is required.
    at ValidationError.inspect (/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/error/validation.js:50:26)
    at formatValue (node:internal/util/inspect:805:19)
    at inspect (node:internal/util/inspect:364:10)
    at formatWithOptionsInternal (node:internal/util/inspect:2298:40)
    at formatWithOptions (node:internal/util/inspect:2160:10)
    at console.value (node:internal/console/constructor:351:14)
    at console.warn (node:internal/console/constructor:384:61)
    at /app/apps/api/dist/src/scripts/create-local-user.js:115:25
    at step (/app/apps/api/dist/src/scripts/create-local-user.js:56:23)
    at Object.throw (/app/apps/api/dist/src/scripts/create-local-user.js:37:53) {
  errors: {
    subscriptionEndsAfter: ValidatorError: Path `subscriptionEndsAfter` is required.
        at validate (/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/schemaType.js:1365:13)
        at SchemaType.doValidate (/app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/schemaType.js:1349:7)
        at /app/node_modules/.pnpm/[email protected]/node_modules/mongoose/lib/document.js:2972:18
        at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
      properties: [Object],
      kind: 'required',
      path: 'subscriptionEndsAfter',
      value: undefined,
      reason: undefined,
      [Symbol(mongoose#validatorError)]: true
    }
  },
  _message: 'User validation failed'
}
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