davebshow / ipython-gremlin

http://ipython-gremlin.readthedocs.org/en/latest/
MIT License
42 stars 8 forks source link

The [eval] message contains 20 bindings which is more than is allowed by the server 16 configuration #1

Open hippysurfer opened 7 years ago

hippysurfer commented 7 years ago

Hi

I am new to gremlin and this jupyter plugin looked ideal as a platform for learn about it. However, when I try to run the example notebook I get the following error:

The [eval] message contains 20 bindings which is more than is allowed by the server 16 configuration

Any idea what is going on?

Thanks

Richard

davebshow commented 7 years ago

Are you using TinkerPop 3.2.5? If I remember correctly, I believe they added a max bindings option to the server configuration. Since ipython-gremlin binds the local namespace and sends to server it is sending too many bindings for the default server conf. With a quick glance at the conf I don't see this though, I will look into it this weekend and include some configuration options for ipython-gremlin to help avoid this problem with the next release, which should be very soon.

davebshow commented 7 years ago

I saw your question on Google Groups, and @spmallette's answer should work fine. As he said, just add the Standard Op Processor to the processors map in the YAML conf file:

  - { className: org.apache.tinkerpop.gremlin.server.op.standard.StandardOpProcessor, config: { maxParameters: 64 }}

64 params should be enough to solve this problem. As I said, I will add a configuration feature to ipython-gremlin in the next release as well so you can choose whether or not to pass the user namespace as bindings.

iansrobinson commented 6 years ago

As a workaround, we've found that prefixing the query with the line %reset -f helps