Skip to content

Nano does not work when using special characters in CouchDB password #174

Closed
@matthiasunt

Description

@matthiasunt

Nano does not parse a CouchDB host, username, and password correctly if the string which is passed to the constructor contains special characters.

Steps to Reproduce (for bugs)

import * as Nano  from 'nano'

let n = Nano('http://admin:g[?6asdwrF@localhost:5984');
console.log(n);
let db = n.db.use('people');

Your Environment

  • Version used: 8.1.0
  • Operating System and version (desktop or mobile): macOs 10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions