这是一个创建于 3739 天前的主题,其中的信息可能已经有所发展或是发生改变。
一个 unique 的错误返回这种:
insertDocument :: caused by :: 11000 E11000 duplicate key error index: miccity_test.users.$username_1 dup key: { : "11112312a" }
我是负责做 api 的,怎么想移动端解释这么奇葩(难读)的错误,而且没法判断。。
4 条回复 • 2014-07-12 17:41:52 +08:00
|
|
1
zieglar 2014-07-12 16:50:00 +08:00
自己没有在代码里处理 unique 问题,本身就不对吧,如果靠你这样来写 API,那移动端还不如直接对 monogodb 操作,反正它还提供了 RESTful 接口,要你何用呢?
|
|
|
2
WildCat 2014-07-12 16:52:26 +08:00 1
|