dsfields / couchbase-promises Goto Github PK
View Code? Open in Web Editor NEWA drop-in replacement for the native Couchbase module with added support for A+ Promises.
License: MIT License
A drop-in replacement for the native Couchbase module with added support for A+ Promises.
License: MIT License
bucket.getAsync(key) is throwing the following error for me in an Express.js app:
Second argument needs to be an object or callback.
[TypeError: Second argument needs to be an object or callback.]
Is this by design?
Installing this give me:
npm ERR! peer dep missing: [email protected], required by [email protected]
couchbase module is now at version 2.3.0
Hi,
I recently started a Node project with Couchbase and implemented my own promise system for Couchbase. I just found out about this package which seems well implemented but I encounter a weird bug.
I use the same credential as when I was using couchbase offical package (all was running smoothly) but when I try to reuse the exact same credentials with couchbase-promises, I received the following error:
CouchbaseError: Authentication failed. You may have provided an invalid username/password combination
.
I always receive the Authentication Failed error in case of failure.
I also reported the issue on the couchbase forums
Thank you for taking the time to read the issue \o/
Node: 8.9.4
Couchbase server: 5.0.1 build 5003 Windows
couchbase-promises: ^4.3.0
OS: Windows 10
I was wondering if this library can work with ES6 directly, without using a polyfill.
Cheers!
return promisify(this.get, key, options);
should be
return promisify.call(this,this.get, key, options);
otherwise getting error
TypeError: Cannot read property '_bucket' of undefined
Add SearchQuery:
+ lib/couchbase.js:9 SearchQuery: couchbase.Mock.SearchQuery,
+ lib/couchbase.js:22 SearchQuery: couchbase.SearchQuery,
Update to ES2015 syntax
Whenever calling any async
function, its throwing TypeError: Second argument needs to be an object or callback.
, workaround for now is to pass empty object as second argument.
ip-10-8-8-110:~/# npm install couchbase-promises
npm WARN deprecated [email protected]: use uuid module instead
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
[email protected] install /root/nodejs-test/node_modules/couchbase
prebuild --install
sh: prebuild: command not found
npm ERR! Linux 3.0.101-94-ec2
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "couchbase-promises"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: prebuild --install
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'prebuild --install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the couchbase package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! prebuild --install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs couchbase
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls couchbase
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/nodejs-test/npm-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.