Closed meenie closed 8 years ago
NoBrainer only asks for rethinkdb >= 2.1.0
, so you should be good to go.
Latest RethinkDB is supported.
I created a very basic model
class TestModel
include NoBrainer::Document
field :foo
end
And tried to use TestModel.create(:foo => 'bar')
but I get this message:
NoBrainer::Error::DocumentNotSaved: Server dropped connection with message: "ERROR: The PROTOBUF client protocol is no longer supported
Anything you can think of that's wrong?
The full error is:
[2016-03-25 11:01:50] DEBUG Rails : [11.7ms] r.table("test_models").insert( r.json("{\"foo\":\"bar\",\"id\":\"56f57d0e633bb05604000002\"}")) RethinkDB::RqlRuntimeError Server dropped connection with message: "ERROR: The PROTOBUF client protocol is no longer supported
NoBrainer::Error::DocumentNotSaved: Server dropped connection with message: "ERROR: The PROTOBUF client protocol is no longer supported
"
Query was: r.table("test_models").insert(
r.json("{\"foo\":\"bar\",\"id\":\"56f57d0e633bb05604000002\"}")
)
from /Users/codyl/dev-files/flabongo/vendor/bundle/ruby/2.1.0/gems/nobrainer-0.13.1/lib/no_brainer/query_runner/write_error.rb:26:in `raise_write_error'
nobrainer-0.13.1
is from March, 2014. Use the latest (bundle update
)
Ya, sorry, just saw that. Not sure how that could happen. I just put gem 'nobrainer'
in my Gemfile and it installed that one ><. Sorry about that.
no worries :)
I'm using RethinkDB 2.2.5. I'm assuming you need to update the
rethinkdb
gem to a newer version? If you can't, what version of RethinkDB do you support?