Remove decodeURIComponent() call on this.instance.auth because ... #129

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

...this.instance.auth was never encoded, and my crazy password caused decodeURIComponent to throw an error:

Error: URIError: URI malformed
at decodeURIComponent (native)
at CouchDB.client (/usr/lib/node_modules/jamjs/lib/couchdb.js:174:13)
at CouchDB.session (/usr/lib/node_modules/jamjs/lib/couchdb.js:447:10)
at exports.doPublish (/usr/lib/node_modules/jamjs/lib/commands/publish.js:62:10)
at Object.exports.catchAuthError (/usr/lib/node_modules/jamjs/lib/utils.js:109:8)
at exports.publish (/usr/lib/node_modules/jamjs/lib/commands/publish.js:47:15)
at exports.getAuth (/usr/lib/node_modules/jamjs/lib/utils.js:171:17)
at ReadStream.data (/usr/lib/node_modules/jamjs/node_modules/prompt/lib/prompt.js:610:18)
at ReadStream.EventEmitter.emit (events.js:96:17)
at TTY.onread (net.js:392:31)
Failed

Jonathan Lomas Remove decodeURIComponent() call on this.instance.auth because this.i…
…nstance.auth was never encoded, and my crazy password caused decodeURIComponent to throw an error:

> Error: URIError: URI malformed
>     at decodeURIComponent (native)
>     at CouchDB.client (/usr/lib/node_modules/jamjs/lib/couchdb.js:174:13)
>     at CouchDB.session (/usr/lib/node_modules/jamjs/lib/couchdb.js:447:10)
>     at exports.doPublish (/usr/lib/node_modules/jamjs/lib/commands/publish.js:62:10)
>     at Object.exports.catchAuthError (/usr/lib/node_modules/jamjs/lib/utils.js:109:8)
>     at exports.publish (/usr/lib/node_modules/jamjs/lib/commands/publish.js:47:15)
>     at exports.getAuth (/usr/lib/node_modules/jamjs/lib/utils.js:171:17)
>     at ReadStream.data (/usr/lib/node_modules/jamjs/node_modules/prompt/lib/prompt.js:610:18)
>     at ReadStream.EventEmitter.emit (events.js:96:17)
>     at TTY.onread (net.js:392:31)
> Failed
951c317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment