leapinweasel opened a new issue #291: URL: https://github.com/apache/couchdb-nano/issues/291
I'm failing to use the head() command in documents with "/" in the id. The document exists, but always returns null, as the method does not replace the "/" command with %2F. I tried to escape it myself before passing, and then it does escape the "%" value and still fails to find. I'm using an older version, I haven't been able to upgrade yet, but I couldn't find anything in recent release notes for this issue. ## Expected Behavior head() method should find documents with IDs containing "/" characters. ## Current Behavior head() always returns null when looking for documents with "/" in the ID. ## Possible Solution ## Steps to Reproduce (for bugs) _Please note my javascript is not good._ const db = nano.use("mydatabase"); await db.insert({ _id: "TEST/DOC" }); let result = await db.head("TEST/DOC"); ## Context Our real world data exists in a system which allows "/" in names. We use couchdb in an integration environment, but can't work with this data. ## Your Environment * Version used: 8.1.0 * Browser Name and version: node.js * Operating System and version (desktop or mobile): node.js on linux * Link to your project: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org