Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error "expecting POST /_api/cursor" #803

Closed
DougGarno55 opened this issue Feb 15, 2024 · 1 comment
Closed

Getting error "expecting POST /_api/cursor" #803

DougGarno55 opened this issue Feb 15, 2024 · 1 comment

Comments

@DougGarno55
Copy link

This is a re-opening of issue #800.

If I try to get records greater than 1,000, I get the "expecting POST /_api/cursor" error when I call the cursor.all() method in using the JavaScript driver Arangojs.

Here is my installation:

  • ArangoDB version 3.11.3
  • Arangojs versioin 8.6.0
  • Node.js version 18.14.0

If I add 'LIMIT 1000' to the query, everything works as expected.
If I add 'LIMIT 1001' or anything over 1,000 I get the error.
My Test database has one collection (FOICU) with 5,000 documents and only one attribute (CU_NAME).

To replicate:

const Database = require( 'arangojs' ).Database;
let db = new Database({
   url: 'HTTP://127.0.0.1:8529',
   databaseName: 'TEST',
   auth: { username: 'root', password: 'test' }
});
let cursor = await db.query( 'FOR doc1 IN FOICU RETURN { "CU_NAME": doc1.CU_NAME }' );
let result = await cursor.all();
return result;

I've tried this on multiple databases, multiple collections all with the same result.

Release 8.3.0 of arangojs works, the problem started with release 8.4.0.

@pluma4345
Copy link
Member

I've reopened #800 so I'm closing this as a duplicate.

@pluma4345 pluma4345 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants