Skip to content

Bot Create doesn't work when there is already a bot on the db #4

@fbaiodias

Description

@fbaiodias

Error:
/Users/xicombd/Code/livebots/api.livebots.cc/node_modules/mongoose/lib/utils.js:413
throw err;
^
AssertionError: "string" == "undefined"
at jsSprintf (/Users/xicombd/Code/livebots/api.livebots.cc/node_modules/restify/node_modules/verror/node_modules/extsprintf/lib/extsprintf.js:50:13)
at WError (/Users/xicombd/Code/livebots/api.livebots.cc/node_modules/restify/node_modules/verror/lib/verror.js:115:41)
at HttpError (/Users/xicombd/Code/livebots/api.livebots.cc/node_modules/restify/lib/errors/http_error.js:47:16)
at RestError (/Users/xicombd/Code/livebots/api.livebots.cc/node_modules/restify/lib/errors/rest_error.js:43:19)
at new module.exports.(anonymous function) (/Users/xicombd/Code/livebots/api.livebots.cc/node_modules/restify/lib/errors/rest_error.js:89:27)
at done (/Users/xicombd/Code/livebots/api.livebots.cc/resources/bot/create.js:73:16)
at /Users/xicombd/Code/livebots/api.livebots.cc/node_modules/async/lib/async.js:229:13
at /Users/xicombd/Code/livebots/api.livebots.cc/node_modules/async/lib/async.js:133:21
at /Users/xicombd/Code/livebots/api.livebots.cc/node_modules/async/lib/async.js:226:17
at /Users/xicombd/Code/livebots/api.livebots.cc/node_modules/async/lib/async.js:553:34
1 Jan 16:23:43 - [nodemon] app crashed - waiting for file changes before starting...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions