Driver 2.2.1 error
See original GitHub issueWith the latest couchbase driver (version 2.2.1) ottoman returns this error any time it tries to do a N1QL query
TypeError: First argument needs to be a ViewQuery, SpatialQuery or N1qlQuery.
at Bucket.query (/node_modules/couchbase/lib/bucket.js:957:11)
at CbStoreAdapter.find (/node_modules/ottoman/lib/cbstoreadapter.js:752:15)
at Ottoman._findModels (/node_modules/ottoman/lib/ottoman.js:551:16)
at Function.ModelInstance.find (/node_modules/ottoman/lib/modelinstance.js:608:23)
...
If I execute a N1QL query directly this problem is not present and it looks the same code path is executed (on couchbase module I mean).
I tried to change node-ottoman dependency to enforce the latest version of couchbase and your tests pass. Any idea of what is happening? Aside, this happens even at the index creation if any.
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
No Driver Found Message Appears During Oracle VM 2.2.1 ...
The Oracle VM Server installation process might show a “no driver found” message during the installation of Oracle VM 2.2.1 from Oracle Hardware...
Read more >Spark 2.2.1: array_contains in join condition causes "bigger ...
I am using AWS Glue manage environment and don't have access to the query plan. However, I am curious why joining on array_contains...
Read more >Troubleshooting — iGibson 2.2.1 documentation - GitHub Pages
This error is caused by a change in the Command-line tools (CLT) of MacOS. CLT can be installed as part of Xcode or...
Read more >Why do I get "CRJAZ1993E The database JDBC driver ...
I am having trouble configuring the database driver for Jazz Team Server. I am currently using the driver ojdbc14.jar (version 10.2.0.4.0) ...
Read more >Dell Server BIOS PowerEdge R415 Version 2.2.1 | Driver Details
* Added WS2012 R2 SLP marker. * Corrected an intermittent BIOS update error under RHEL 5.9 64-bit OS. Read More. Version. 2.2.1, 2.2 ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey Guys, The issue is that the couchnode version that is ‘included’ in ottoman is not matching the couchnode version that is used in your application. Due to this, when you instantiate the Couchbase connection object, its ‘version’ of N1qlQuery does not match the version of N1qlQuery being created by Ottoman. I am looking into a way to solve this problem on a more general basis, but I have not got an answer as of yet. Cheers, Brett
I have also found that you get this error if you include couchbase in the DSN
produces error
const cluster = new couchbase.Cluster(
couchbase://${dbServer});
does not produce error
const cluster = new couchbase.Cluster(
${dbServer});
Adding this here, because this was the highest google search result i found