payload icon indicating copy to clipboard operation
payload copied to clipboard

DocumentDB: cursur within transaction not supported, rest API 500 error above 101 results

Open mvdve opened this issue 6 months ago • 1 comments

Link to reproduction

No response

Describe the Bug

When calling a rest endpoint with a limit higher then 101 and more then 101 results, DocumentDB throws the following error:

MongoServerError: Feature not supported: cursor within transaction. Try increasing the batchsize

This seems to be causes by a limitation of Documentdb

To Reproduce

  • Add more then 101 items to a collection
  • Open de admin interface and copy a collection view rest api call
  • Up the limit to 102 and the api call will return an 500 error {"errors":[{"message":"Something went wrong."}]}

Payload Version

2.3.1

Adapters and Plugins

@payloadcms/db-mongodb

mvdve avatar Dec 10 '23 16:12 mvdve