-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I'm trying to query with 2i like the examples in the book:
> riak.query('tweets', {user: 'zenocon'})
TypeError: Object #<HttpClient> has no method 'query'
at repl:1:7
at REPLServer.eval (repl.js:80:21)
at Interface.<anonymous> (repl.js:182:12)
at Interface.emit (events.js:67:17)
at Interface._onLine (readline.js:162:10)
at Interface._line (readline.js:426:8)
at Interface._ttyWrite (readline.js:603:14)
at ReadStream.<anonymous> (readline.js:82:12)
at ReadStream.emit (events.js:88:20)
at ReadStream._emitKey (tty.js:327:10)
Hmm... I enabled eleveldb support in app.config and restarted riak. I added a new tweet, and tried to search and this is what I got. If I'm reading that right, the error is coming from the HTTP riak server, not the riak-js driver right? I'm sure it is user error here, but I thought I'd mention it as an example where one is reading said book, doing examples, and gets stuck.
riak shows
> riak.
riak.__defineGetter__ riak.__defineSetter__ riak.__lookupGetter__ riak.__lookupSetter__ riak.constructor riak.hasOwnProperty
riak.isPrototypeOf riak.propertyIsEnumerable riak.toLocaleString riak.toString riak.valueOf
riak.addListener riak.constructor riak.emit riak.listeners riak.on riak.once
riak.removeAllListeners riak.removeListener riak.setMaxListeners
riak.Meta riak.constructor riak.ensure riak.version
riak.Meta riak.add riak.addSearch riak.buckets riak.constructor riak.count
riak.decodeBuffer riak.disableIndex riak.enableIndex riak.end riak.execute riak.exists
riak.get riak.getAll riak.getLarge riak.getProps riak.head riak.keys
riak.ping riak.remove riak.removeLarge riak.runJob riak.save riak.saveLarge
riak.search riak.stats riak.update riak.updateProps riak.walk
riak._http
Metadata
Metadata
Assignees
Labels
No labels