Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get couchdb-nano working in Vue.js #251

Closed
ghost opened this issue Apr 2, 2019 · 2 comments
Closed

Get couchdb-nano working in Vue.js #251

ghost opened this issue Apr 2, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 2, 2019

Seeing a lot of weirdness trying to get latest couchdb-nano working.

e.g.:

error Cannot invoke an expression whose type lacks a call signature. Type '{ default: (config: string | Configuration) => ServerScope; }' has no compatible call signatures.

(worked around by using non-typescript syntax)

request.js?9ba5:391 Uncaught (in promise) TypeError: self._qs.unescape is not a function
@ghost ghost created this issue from a note in Field Data Validation/Collection (DVC) (Will In Progress) Apr 2, 2019
@ghost
Copy link
Author

ghost commented Apr 2, 2019

Just living with the JS style import for couchdb-nano for now.

Working now, the unescape issue relates to https://username:password@localhost format of URL's , so using alternative basic auth mechanism

Unescape error is basically this: request/request#1619

@ghost ghost closed this as completed Apr 2, 2019
@ghost ghost moved this from Will In Progress to Done in Field Data Validation/Collection (DVC) Apr 2, 2019
@ghost
Copy link
Author

ghost commented Apr 4, 2019

I filed a PR to request to fix it. For now, we just won't use this, since the auth() mechanism (cookie-based) is broken.

I've moved over to the simpler node-couchdb, which will work for now. We might consider extending it and contributing to the project (e.g. cookie based auth support.)

@ghost ghost reopened this Apr 4, 2019
@ghost ghost closed this as completed Apr 4, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

0 participants