neoid-gem / neoid

Extend Ruby on Rails ActiveRecord with Neo4j nodes. Keep RDBMS and utilize the power of Neo4j queries.
MIT License
171 stars 33 forks source link

RuntimeError on neo_save(): "Accessed result too soon" #26

Open francoisbruneau opened 11 years ago

francoisbruneau commented 11 years ago

When calling neo_save() on a model in a Resque asynchronous job, I frequently get this error:

RuntimeError
Accessed result too soon
/var/www/srv/webdoc/shared/bundle/ruby/1.9.1/gems/neoid-0.1.2/lib/neoid/batch.rb:149:in `result'
/var/www/srv/webdoc/shared/bundle/ruby/1.9.1/gems/neoid-0.1.2/lib/neoid/batch.rb:154:in `method_missing'
/var/www/srv/webdoc/shared/bundle/ruby/1.9.1/gems/neoid-0.1.2/lib/neoid/node.rb:127:in `_neo_save'
/var/www/srv/webdoc/shared/bundle/ruby/1.9.1/gems/neoid-0.1.2/lib/neoid/model_additions.rb:56:in `neo_save'

I can not reproduce this issue when synchronously saving the model using Rails console.

Any idea where it may come from?

killinit commented 10 years ago

I'am having same problem. Please help

BenMorganIO commented 10 years ago

Please go the http://github.com/BenMorganIO/neoid and submit the issue there. I'm trying to get this gem back up to date...

killinit commented 10 years ago

Sorry but I do not see issues tab on Your git.

BenMorganIO commented 10 years ago

Fixed!

On Wed, Jun 18, 2014 at 12:01 AM, Maciej Adamczewski < notifications@github.com> wrote:

Sorry but I do not see issues tab on Your git.

— Reply to this email directly or view it on GitHub https://github.com/elado/neoid/issues/26#issuecomment-46402242.

BenMorganIO commented 10 years ago

For future reference: Issue explained with more detail here.