Skip to content

Instantly share code, notes, and snippets.

@0xmtn
Created June 2, 2014 12:00
Show Gist options
  • Save 0xmtn/7da1812db7fef11d2bdd to your computer and use it in GitHub Desktop.
Save 0xmtn/7da1812db7fef11d2bdd to your computer and use it in GitHub Desktop.
Neo4Django - Cannot create node - StatusException thrown
>>> p = Person.objects.create(name="Metin Emenullahi", user_id="sdg'd;f", registered_at="05/01/2014");
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/db/models/manager.py", line 43, in create
return self.get_query_set().create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/db/models/query.py", line 1307, in create
return super(NodeQuerySet, self).create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.8-py2.7.egg/django/db/models/query.py", line 416, in create
obj.save(force_insert=True, using=self.db)
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/db/models/base.py", line 325, in save
return super(NodeModel, self).save(using=using, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.5.8-py2.7.egg/django/db/models/base.py", line 546, in save
force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/db/models/base.py", line 341, in save_base
self._save_neo4j_node(using)
File "<string>", line 2, in _save_neo4j_node
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/db/models/base.py", line 98, in trans_method
ret = func(*args, **kw)
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/db/models/base.py", line 369, in _save_neo4j_node
typesToIndex=type_names_to_index)
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/neo4jclient.py", line 179, in gremlin_tx
return self.gremlin(script, tx=True, **params)
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/neo4jclient.py", line 168, in gremlin
params)
File "/usr/local/lib/python2.7/dist-packages/neo4django-0.1.8-py2.7.egg/neo4django/neo4jclient.py", line 153, in send_script
script_rv = ext.execute_script(s, params=params, **execute_kwargs)
File "/usr/local/lib/python2.7/dist-packages/neo4jrestclient-2.0.3-py2.7.egg/neo4jrestclient/client.py", line 2313, in __call__
raise StatusException(response.status_code, msg)
StatusException: Code [400]: Bad Request. Bad request syntax or unsupported method.
Invalid data sent: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: groovy.lang.MissingMethodException.setMaxBufferSize() is applicable for argument types: () values: []
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment