slotlist / slotlist-backend

Backend of slotlist.info, an ArmA 3 mission planning and slotlist management tool
https://slotlist.info
MIT License
13 stars 6 forks source link

Incorrect value chosen for hapi-swagger config settings #16

Closed MorpheusXAUT closed 6 years ago

MorpheusXAUT commented 6 years ago

https://sentry.io/morpheusxaut/slotlist-backend/issues/346442631/

ValidationError: {
  "swagger": "2.0",
  "host": "undefined",
  "basePath": "/",
  "schemes": [
    "api.slotlist.info" [1]
  ],
  "info": {
    "title": "slotlist.info API Documentation",
    "version": "1.0.0-alpha7",
    "contact": {
      "name": "Nick 'MorpheusXAUT' Mueller",
      "email": "nick@slotlist.info"
    },
    "termsOfService": "https://slotlist.info/#/about",
    "license": {
      "name": "MIT",
      "url": "https://github.com/MorpheusXAUT/slotlist-backend/blob/master/LICENSE"
    }
  }
}

[1] "0" must be one of [http, https, ws, wss]
  File "/app/src/api/API.ts", line 245, in null.<anonymous>
    return reply.continue();
  File "/app/dist/src/api/API.js", line 7, in null.<anonymous>
    step((generator = generator.apply(thisArg, _arguments || [])).next());
  File "/app/dist/src/api/API.js", line 3, in __awaiter
    return new (P || (P = Promise))(function (resolve, reject) {
  File "/app/dist/src/api/API.js", line 166, in checkACL
    return __awaiter(this, void 0, void 0, function* () {
  File "/app/src/api/API.ts", line 262, in parseRealIP
    return reply.continue();
...
(73 additional frame(s) were not displayed)

ValidationError: {
  "swagger": "2.0",
  "host": "undefined",
  "basePath": "/",
  "schemes": [
    "api.slotlist.info" [1]
  ],
  "info": {
    "title": "slotlist.info API Documentation",
    "version": "1.0.0-alpha7",
    "contact": {
      "name": "Nick 'MorpheusXAUT' Mueller",
      "email": "nick@slotlist.info"
    },
    "termsOfService": "https://slotlist.info/#/about",
    "license": {
      "name": "MIT",
      "url": "https://github.com/MorpheusXAUT/slotlist-backend/blob/master/LICENSE"
    }
  }
}

[1] "0" must be one of [http, https, ws, wss]