Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

floatingLomas
Copy link

...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

…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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant