error: lib/datamodel: GAVEL_VALIDATION_ERROR : TypeError: Object.keys called on non-object
Oct 07 12:53:58 apiary app/web.2: at Function.keys (native)
Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:112:43)
Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:122:47)
Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:122:47)
Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:122:47)
Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.generate (/app/node_modules/gavel/lib/utils/schema-generator.js:50:31)
Oct 07 12:53:58 apiary app/web.2: at JsonExample.getSchema (/app/node_modules/gavel/lib/validators/json-example.js:81:28)
Oct 07 12:53:58 apiary app/web.2: at new JsonExample (/app/node_modules/gavel/lib/validators/json-example.js:28:24)
Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.runBodyValidator (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:272:19)
Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.validateBody (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:130:10)
Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.validate (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:20:12)
Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.isValid (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:43:12)
Oct 07 12:53:58 apiary app/web.2: at setValidations (/app/lib/datamodel.coffee:1148:37, :1742:38)
Oct 07 12:53:58 apiary app/web.2: at transformValidationResult (/app/lib/datamodel.coffee:1216:5, :1813:7)
Oct 07 12:53:58 apiary app/web.2: at model.trafficSchema.methods.getHtmlDiff.Gavel2Html (/app/lib/datamodel.coffee:1223:10, :1824:12)
Oct 07 12:53:58 apiary app/web.2: at VirtualType.applyGetters (/app/node_modules/mongoose/lib/virtualtype.js:77:25)
Oct 07 12:53:58 apiary app/web.2: at model.Document.get (/app/node_modules/mongoose/lib/document.js:700:18)
Oct 07 12:53:58 apiary app/web.2: at applyGetters (/app/node_modules/mongoose/lib/document.js:1519:35)
Oct 07 12:53:58 apiary app/web.2: at model.Document.toObject (/app/node_modules/mongoose/lib/document.js:1468:5)
Oct 07 12:53:58 apiary app/web.2: at Promise.exports.Controller.MockController.mockRequest (/app/lib/mocks.coffee:908:51, :1169:22)
Oct 07 12:53:58 apiary app/web.2: at Promise.onResolve (/app/node_modules/mongoose/node_modules/mpromise/lib/promise.js:162:8)
Oct 07 12:53:58 apiary app/web.2: at Promise.EventEmitter.emit (events.js:99:17)
Oct 07 12:53:58 apiary app/web.2: at Promise.emit (/app/node_modules/mongoose/node_modules/mpromise/lib/promise.js:79:38)
Oct 07 12:53:58 apiary app/web.2: at Promise.fulfill (/app/node_modules/mongoose/node_modules/mpromise/lib/promise.js:92:20)
Oct 07 12:53:58 apiary app/web.2: at handleSave (/app/node_modules/mongoose/lib/model.js:130:13)
Oct 07 12:53:58 apiary app/web.2: at exports.tick (/app/node_modules/mongoose/lib/utils.js:414:16)
Oct 07 12:53:58 apiary app/web.2: at /app/node_modules/mongodb/lib/mongodb/collection.js:497:9
Oct 07 12:53:58 apiary app/web.2: at Server.Base._callHandler (/app/node_modules/mongodb/lib/mongodb/connection/base.js:382:41)
Oct 07 12:53:58 apiary app/web.2: at Server.connect.connectionPool.on.server._serverState (/app/node_modules/mongodb/lib/mongodb/connection/server.js:472:18)
Oct 07 12:53:58 apiary app/web.2: at [object Object].MongoReply.parseBody (/app/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
Oct 07 12:53:58 apiary app/web.2: at [object Object].Server.connect.connectionPool.on.server._serverState (/app/node_modules/mongodb/lib/mongodb/connection/server.js:430:20)
Oct 07 12:53:58 apiary app/web.2: at [object Object].EventEmitter.emit (events.js:96:17)
Oct 07 12:53:58 apiary app/web.2: at [object Object]._connect (/app/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)
Oct 07 12:53:58 apiary app/web.2: at [object Object].EventEmitter.emit (events.js:99:17)
Oct 07 12:53:58 apiary app/web.2: at Socket.exports.Connection.createDataHandler (/app/node_modules/mongodb/lib/mongodb/connection/connection.js:384:22)
Oct 07 12:53:58 apiary app/web.2: at Socket.EventEmitter.emit (events.js:96:17)
Oct 07 12:53:58 apiary app/web.2: at TCP.onread (net.js:397:14)
https://papertrailapp.com/systems/apiary/events?r=323825502379114502-323825564656099348
error: lib/datamodel: GAVEL_VALIDATION_ERROR : TypeError: Object.keys called on non-object Oct 07 12:53:58 apiary app/web.2: at Function.keys (native) Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:112:43) Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:122:47) Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:122:47) Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.getSchemaForObject (/app/node_modules/gavel/lib/utils/schema-generator.js:122:47) Oct 07 12:53:58 apiary app/web.2: at SchemaGenerator.generate (/app/node_modules/gavel/lib/utils/schema-generator.js:50:31) Oct 07 12:53:58 apiary app/web.2: at JsonExample.getSchema (/app/node_modules/gavel/lib/validators/json-example.js:81:28) Oct 07 12:53:58 apiary app/web.2: at new JsonExample (/app/node_modules/gavel/lib/validators/json-example.js:28:24) Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.runBodyValidator (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:272:19) Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.validateBody (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:130:10) Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.validate (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:20:12) Oct 07 12:53:58 apiary app/web.2: at HttpResponse.validatable.isValid (/app/node_modules/gavel/lib/mixins/validatable-http-message.js:43:12) Oct 07 12:53:58 apiary app/web.2: at setValidations (/app/lib/datamodel.coffee:1148:37,:1742:38)
Oct 07 12:53:58 apiary app/web.2: at transformValidationResult (/app/lib/datamodel.coffee:1216:5, :1813:7)
Oct 07 12:53:58 apiary app/web.2: at model.trafficSchema.methods.getHtmlDiff.Gavel2Html (/app/lib/datamodel.coffee:1223:10, :1824:12)
Oct 07 12:53:58 apiary app/web.2: at VirtualType.applyGetters (/app/node_modules/mongoose/lib/virtualtype.js:77:25)
Oct 07 12:53:58 apiary app/web.2: at model.Document.get (/app/node_modules/mongoose/lib/document.js:700:18)
Oct 07 12:53:58 apiary app/web.2: at applyGetters (/app/node_modules/mongoose/lib/document.js:1519:35)
Oct 07 12:53:58 apiary app/web.2: at model.Document.toObject (/app/node_modules/mongoose/lib/document.js:1468:5)
Oct 07 12:53:58 apiary app/web.2: at Promise.exports.Controller.MockController.mockRequest (/app/lib/mocks.coffee:908:51, :1169:22)
Oct 07 12:53:58 apiary app/web.2: at Promise.onResolve (/app/node_modules/mongoose/node_modules/mpromise/lib/promise.js:162:8)
Oct 07 12:53:58 apiary app/web.2: at Promise.EventEmitter.emit (events.js:99:17)
Oct 07 12:53:58 apiary app/web.2: at Promise.emit (/app/node_modules/mongoose/node_modules/mpromise/lib/promise.js:79:38)
Oct 07 12:53:58 apiary app/web.2: at Promise.fulfill (/app/node_modules/mongoose/node_modules/mpromise/lib/promise.js:92:20)
Oct 07 12:53:58 apiary app/web.2: at handleSave (/app/node_modules/mongoose/lib/model.js:130:13)
Oct 07 12:53:58 apiary app/web.2: at exports.tick (/app/node_modules/mongoose/lib/utils.js:414:16)
Oct 07 12:53:58 apiary app/web.2: at /app/node_modules/mongodb/lib/mongodb/collection.js:497:9
Oct 07 12:53:58 apiary app/web.2: at Server.Base._callHandler (/app/node_modules/mongodb/lib/mongodb/connection/base.js:382:41)
Oct 07 12:53:58 apiary app/web.2: at Server.connect.connectionPool.on.server._serverState (/app/node_modules/mongodb/lib/mongodb/connection/server.js:472:18)
Oct 07 12:53:58 apiary app/web.2: at [object Object].MongoReply.parseBody (/app/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
Oct 07 12:53:58 apiary app/web.2: at [object Object].Server.connect.connectionPool.on.server._serverState (/app/node_modules/mongodb/lib/mongodb/connection/server.js:430:20)
Oct 07 12:53:58 apiary app/web.2: at [object Object].EventEmitter.emit (events.js:96:17)
Oct 07 12:53:58 apiary app/web.2: at [object Object]._connect (/app/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:191:13)
Oct 07 12:53:58 apiary app/web.2: at [object Object].EventEmitter.emit (events.js:99:17)
Oct 07 12:53:58 apiary app/web.2: at Socket.exports.Connection.createDataHandler (/app/node_modules/mongodb/lib/mongodb/connection/connection.js:384:22)
Oct 07 12:53:58 apiary app/web.2: at Socket.EventEmitter.emit (events.js:96:17)
Oct 07 12:53:58 apiary app/web.2: at TCP.onread (net.js:397:14)