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

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

Open
2 tasks done
ioannist opened this issue Jul 24, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@ioannist
Copy link

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?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ioannist ioannist added the bug Something isn't working label Jul 24, 2024
@abdoufma
Copy link

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

@ioannist
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants