Giter Site home page Giter Site logo

Comments (5)

fjc0k avatar fjc0k commented on June 21, 2024

明了,在提供了 connectString 时应跳过 MongoDB 检测。

from docker-yapi.

fjc0k avatar fjc0k commented on June 21, 2024

等待 ci 构建镜像。

from docker-yapi.

fjc0k avatar fjc0k commented on June 21, 2024

好了,重新拉取镜像再试。

from docker-yapi.

airclear avatar airclear commented on June 21, 2024

新问题。。 @fjc0k

启动引导服务...
写入配置...
{
  "plugins": [
    {
      "name": "add-user",
      "options": {}
    }
  ],
  "adminAccount": "**",
  "adminPassword": "**",
  "closeRegister": false,
  "port": 3000,
  "db": {
    "DATABASE": "yapi",
    "user": "**",
    "pass": "**",
    "connectString": "mongodb+srv://**:**@mongo-cluster1-rs0.psmdb.svc.cluster.local/yapi?replicaSet=rs0&ssl=false&slaveOk=true"
  },
  "mail": {
    "enable": false,
    "auth": {}
  },
  "ldapLogin": {
    "enable": false
  }
}
等待 MongoDB 服务可用...
安装 YApi 插件...
尝试安装 YApi...
+ node '--unhandled-rejections=strict' /yapi/vendors/server/install.js


/yapi/vendors/node_modules/mongoose/lib/error/validation.js:31
    Error.captureStackTrace(this);
          ^

Error [ValidationError]: user validation failed: username: Path `username` is required.
    at ValidationError.inspect (/yapi/vendors/node_modules/mongoose/lib/error/validation.js:61:24)
    at formatValue (internal/util/inspect.js:703:31)
    at inspect (internal/util/inspect.js:272:10)
    at afterInspector (internal/errors.js:681:14)
    at processPromiseRejections (internal/process/promises.js:194:9)
    at processTicksAndRejections (internal/process/task_queues.js:98:32) {
  errors: {
    username: MongooseError [ValidatorError]: Path `username` is required.
        at new ValidatorError (/yapi/vendors/node_modules/mongoose/lib/error/validator.js:29:11)
        at validate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:1055:13)
        at /yapi/vendors/node_modules/mongoose/lib/schematype.js:1109:11
        at Array.forEach (<anonymous>)
        at SchemaString.SchemaType.doValidate (/yapi/vendors/node_modules/mongoose/lib/schematype.js:1064:14)
        at /yapi/vendors/node_modules/mongoose/lib/document.js:2190:9
        at processTicksAndRejections (internal/process/task_queues.js:79:11) {
      properties: [Object],
      kind: 'required',
      path: 'username',
      value: '',
      reason: undefined,
      [Symbol(mongoose:validatorError)]: true
    }
  },
  _message: 'user validation failed'
}

关闭引导服务...
尝试启动 YApi...
log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
log: 服务已启动,请打开下面链接访问: 
http://127.0.0.1:3000/
log: mongodb load success...

from docker-yapi.

abeelan avatar abeelan commented on June 21, 2024

登入账号设置为邮箱格式,就可以通过 db 的校验了。

from docker-yapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.