surrealdb.js icon indicating copy to clipboard operation
surrealdb.js copied to clipboard

Bug: HttpConnectionError: Failed to buffer the request body: length limit exceeded

Open ioannist opened this issue 1 year ago • 2 comments

Describe the bug

I am running to into the following error here and then:

HttpConnectionError: Failed to buffer the request body: length limit exceeded

Steps to reproduce

Unfortunately I can't replicate it to provide an example. It seems random, even for relatively small requests.

Expected behaviour

Should not throw error, or should throw error only for very large requests. Maybe an option to be able to increase the limit...

SurrealDB version

1.5.1

JavaScript SDK version

^1.0.0-beta.7

Contact Details

No response

Is there an existing issue for this?

  • [X] I have searched the existing issues

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ioannist avatar Jul 24 '24 13:07 ioannist

From the error message, I have to assume that the request or response body was too big for http client to handle. Maybe some of your queries return a large number of rows? how big is your database?

I run into this error when running surreal import with a database > 4GB

abdoufma avatar Sep 14 '24 21:09 abdoufma

Our database is about 500 GB. The size of the request was small though. Perhaps the database does its own batching? It might take some stress testing over an extended period of time to run into it

ioannist avatar Sep 15 '24 05:09 ioannist

Closing as stale. If this issue persists please do open a new issue.

macjuul avatar Oct 29 '25 19:10 macjuul