D
{ CastError: Cast to string failed for value "[]" at path "rcon_password" for model "Servers"
at new CastError (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/error/cast.js:29:11)
at SchemaString.cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:551:11)
at SchemaString.SchemaType.applySetters (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:892:12)
at SchemaString.SchemaType._castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:1304:15)
at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:607:15)
at SchemaString.handleSingle (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:560:15)
at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:600:20)
at SchemaString.SchemaType.castForQueryWrapper (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:1268:17)
at cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/cast.js:288:39)
at model.Query.Query.cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/query.js:4528:12)
at model.Query.<anonymous> (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/query.js:2151:10)
at model.Query._wrappedThunk [as _countDocuments] (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
at process.nextTick (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/kareem/index.js:369:33)
at process._tickCallback (internal/process/next_tick.js:61:11)
message:
'Cast to string failed for value "[]" at path "rcon_password" for model "Servers"',
name: 'CastError',
stringValue: '"[]"',
kind: 'string',
value: [],
path: 'rcon_password',
reason: undefined,
model:
{ [Function: model]
hooks: Kareem { _pres: [Map], _posts: [Map] },
base:
Mongoose {
connections: [Array],
models: [Object],
modelSchemas: [Object],
options: [Object],
_pluralize: [Function: pluralize],
Schema: [Function],
model: [Function],
plugins: [Array],
SchemaAsync: [Function: ret],
modelAsync: [Function: ret],
setAsync: [Function: ret],
getAsync: [Function: ret],
createConnectionAsync: [Function: ret],
connectAsync: [Function: ret],
disconnectAsync: [Function: ret],
startSessionAsync: [Function: ret],
pluralizeAsync: [Function: ret],
deleteModelAsync: [Function: ret],
modelNamesAsync: [Function: ret],
pluginAsync: [Function: ret],
AggregateAsync: [Function: ret],
CollectionAsync: [Function: ret],
ConnectionAsync: [Function: ret],
MongooseAsync: [Function: ret],
SchemaTypeAsync: [Function: ret],
VirtualTypeAsync: [Function: ret],
QueryAsync: [Function: ret],
ModelAsync: [Function: ret],
DocumentAsync: [Function: ret],
DocumentProviderAsync: [Function: ret],
ObjectIdAsync: [Function: ret],
Decimal128Async: [Function: ret],
MixedAsync: [Function: ret],
NumberAsync: [Function: ret],
ErrorAsync: [Function: ret],
nowAsync: [Function: ret],
CastErrorAsync: [Function: ret],
mongoAsync: [Function: ret],
mqueryAsync: [Function: ret] },
modelName: 'Servers',
model: [Function: model],
db:
NativeConnection {
base: [Mongoose],
collections: [Object],
models: [Object],
config: [Object],
replica: false,
options: null,
otherDbs: [],
relatedDbs: {},
states: [Object],
_readyState: 1,
_closeCalled: false,
_hasOpened: true,
plugins: [],
'$internalEmitter': [EventEmitter],
_listening: false,
_connectionOptions: [Object],
name: 'cod4xwebadmin',
host: 'localhost',
port: ,
user: '',
pass: '',
client: [MongoClient],
'$initialConnection': [Promise],
_events: [Object],
_eventsCount: 1,
db: [Db] },
discriminators: undefined,
events:
EventEmitter {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined },
'$appliedMethods': true,
'$appliedHooks': true,
_middleware: Kareem { _pres: [Map], _posts: [Map] },
'$__insertMany': [Function],
schema:
Schema {
obj: [Object],
paths: [Object],
aliases: {},
subpaths: {},
virtuals: [Object],
singleNestedPaths: {},
nested: {},
inherits: {},
callQueue: [],
_indexes: [],
methods: [Object],
methodOptions: {},
statics: {},
tree: [Object],
query: {},
childSchemas: [],
plugins: [Array],
'$id': 6,
s: [Object],
_userProvidedOptions: [Object],
options: [Object],
'$timestamps': [Object],
'$globalPluginsApplied': true,
_requiredpaths: [],
_indexedpaths: [Array] },
collection:
NativeCollection {
collection: [Collection],
Promise: [Function: Promise],
opts: [Object],
name: 'servers',
collectionName: 'servers',
conn: [NativeConnection],
queue: [],
buffer: false,
emitter: [EventEmitter] },
Query: { [Function] base: [Query] },
'$init':
Promise {
_bitField: 33554432,
_fulfillmentHandler0: [Function],
_rejectionHandler0: [Circular],
_promise0: undefined,
_receiver0: undefined },
'$caught': true,
[Symbol(mongoose#Model)]: true } }