Skip to content

Argument passed in must be a single String of 12 bytes or a string of 24 hex characters #56

Closed
fengmk2 opened this Issue Jun 22, 2012 · 0 comments

1 participant

@fengmk2
KISS JS team. member
fengmk2 commented Jun 22, 2012
db.connection.findById('123', function () {})
Error: Argument passed in must be a single String of 12 bytes or a string of 24 hex characters
    at Function.createFromHexString (/Users/mk2/git/todo/node_modules/mongoskin/node_modules/mongodb/node_modules/bson/lib/bson/objectid.js:209:11)
    at [object Object].<anonymous> (/Users/mk2/git/todo/node_modules/mongoskin/lib/mongoskin/db.js:37:24)
    at [object Object].findById (/Users/mk2/git/todo/node_modules/mongoskin/lib/mongoskin/collection.js:194:31)
    at /Users/mk2/git/todo/controllers/todo.js:45:11
    at Object.lookup [as handle] (/Users/mk2/git/todo/node_modules/urlrouter/lib/urlrouter.js:71:18)
    at next (/Users/mk2/git/todo/node_modules/connect/lib/proto.js:190:15)
    at Object.handle (/Users/mk2/git/todo/node_modules/connect-render/lib/render.js:173:5)
    at next (/Users/mk2/git/todo/node_modules/connect/lib/proto.js:190:15)
    at Object.handle (/Users/mk2/git/todo/node_modules/connect/lib/middleware/csrf.js:48:88)
    at next (/Users/mk2/git/todo/node_modules/connect/lib/proto.js:190:15)
@fengmk2 fengmk2 was assigned Jun 22, 2012
@fengmk2 fengmk2 added a commit that closed this issue Jun 23, 2012
@fengmk2 fengmk2 fixed #56 error: Argument passed in must be a single String of 12 byt…
…es or a string of 24 hex characters; add more test case for conllection.js; add test coverage;
2a4779b
@fengmk2 fengmk2 closed this in 2a4779b Jun 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.