arango.exceptions.CursorNextError: [HTTP 404][ERR 1600] cursor not

113 views
Skip to first unread message

zopyx...@gmail.com

unread,
Jul 20, 2020, 5:04:06 AM7/20/20
to ArangoDB
I have this query against ArangoDB 3.6.5 (Python 3, python-arango 5.4.0):

```
        FOR doc in import
            filter doc._type == 'Plone Site' || doc._type == 'Folder'
            limit 10000000
            RETURN  {path: doc._path, position: doc._gopip}
``` 

This returns about 12.000 documents.

After some time I get this error:

```
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/src/ugent.plone5migration/src/ugent/plone5migration/migration/fix_object_ordering.py", line 51, in main
    for i, r in enumerate(result):
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/python_arango-5.4.0-py3.8.egg/arango/cursor.py", line 61, in __next__
    return self.next()
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/python_arango-5.4.0-py3.8.egg/arango/cursor.py", line 229, in next
    self.fetch()
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/python_arango-5.4.0-py3.8.egg/arango/cursor.py", line 265, in fetch
    raise CursorNextError(resp, request)
arango.exceptions.CursorNextError: [HTTP 404][ERR 1600] cursor not found
 ```

Is this related to the Python driver or ArangoDB itself?

zopyx...@gmail.com

unread,
Jul 20, 2020, 5:05:38 AM7/20/20
to ArangoDB
The issue seems to happen randomly after processing a multiple of 1000 documents, sometimes after 1000 docs, sometimes after 3000 documents.

Wilfried Gösgens

unread,
Jul 20, 2020, 5:35:55 AM7/20/20
to aran...@googlegroups.com
Hi,
you probably need to give the cursor a longer lifetime, else it will expire, hence "cursor not found".
Cheers, Willi

--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arangodb/55d67e33-393b-4167-8173-074e6442a2d7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages