GitHub user carlosduclos opened an issue:

    https://github.com/apache/couchdb-nano/issues/12

    Handle database names with `/` in them

    [Original issue](https://github.com/dscape/nano/issues/291)
    
    __BigBlueHat__
    Right now, if I give couchdb-push (which depends on nano) a URL like 
http://localhost:5984/mail/bigbluehat-com/byoung it throws the following error:
    
    ```javascript
    ...\node_modules\couchdb-push\node_modules\couchdb-ensure\index.js:12
      couch.request({
            ^
    TypeError: undefined is not a function
    ```
    
    If I escape them, however, things work as they should: 
http://localhost:5984/mail%2Fbigbluehat-com%2Fbyoung
    
    Obviously the escaped version is what CouchDB actually wants, but it'd be 
nice for the developer to not have to care that much--or go figure out what's 
needed from that error.
    
    Having this as part of the library would save a bunch of URL parsing 
boilerplate in other people's code too, fwiw.
    
    Thanks!

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to