“Only reserved document ids may start with underscore." when trying to use _find

折月煮酒 提交于 2019-12-11 05:56:16

问题


I'm working with CouchDB and am trying to search a db using _find. I am currently running into the following error:

error: 'illegal_docid',
  reason: 'Only reserved document ids may start with underscore.',
  scope: 'couch',
  statusCode: 400,
  request:
   { method: 'POST',
     headers:
      { 'content-type': 'application/json',
        accept: 'application/json',
        Host: 'example.com',
        Referer: 'https://example.com' },
     uri: 'http://XXXXXX:XXXXXX@206.189.178.130:5984/gc_common/_find',
     body: '{"selector":{"_id":"taglist"}}' },
  headers:
   { date: 'Thu, 25 Jul 2019 22:04:09 GMT',
     'content-type': 'application/json',
     connection: 'close',
     'cache-control': 'must-revalidate',
     statusCode: 400,
     uri: 'http://XXXXXX:XXXXXX@206.189.178.130:5984/gc_common/_find' },
  errid: 'non_200',
  description: 'couch returned 400' }

来源:https://stackoverflow.com/questions/57210714/only-reserved-document-ids-may-start-with-underscore-when-trying-to-use-find

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!