NoBrainerORM / nobrainer

Ruby ORM for RethinkDB
http://nobrainer.io/
Other
387 stars 49 forks source link

ERROR: The PROTOBUF client protocol is no longer supported #197

Closed meenie closed 8 years ago

meenie commented 8 years ago

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?

nviennot commented 8 years ago

NoBrainer only asks for rethinkdb >= 2.1.0, so you should be good to go. Latest RethinkDB is supported.

meenie commented 8 years ago

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?

meenie commented 8 years ago

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'
nviennot commented 8 years ago

nobrainer-0.13.1 is from March, 2014. Use the latest (bundle update)

meenie commented 8 years ago

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.

nviennot commented 8 years ago

no worries :)