Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Error: Error: 400 Bad Request: Payload error: JSON payload (37327342 bytes) is larger than allowed (limit: 33554432 bytes).

Open vipervs opened this issue 1 year ago • 2 comments

Im trying to embed a vector db (quadrant) with langchain docs with sitemap.xml link extraction.

everything works fine and the embedding starts, but after a while I get this error:

Error: Error: 400 Bad Request: Payload error: JSON payload (37327342 bytes) is larger than allowed (limit: 33554432 bytes).

is it possible to increase the JSON payload so it can manage all links?

image

vipervs avatar Feb 27 '24 13:02 vipervs

Is the error coming from Qdrant not able to handle too large of a payload? Or its from Flowise side that is not able to pass the payload over to Qdrant?

HenryHengZJ avatar Feb 29 '24 11:02 HenryHengZJ

I got the same error, I think the qdrant client must send the data in batch mode, and I think we must be able to customize the batch_size in the qdrant node

mrabbah avatar Apr 15 '24 15:04 mrabbah

@vipervs: solution found for the problem. plz check https://github.com/FlowiseAI/Flowise/issues/2191

prithvi151080 avatar Apr 23 '24 01:04 prithvi151080

Increase QDrant limit size is not a solution. I am trying to upload 211kb csv file and I am getting the same error. Very strange behaviour.

xmaiconx avatar Apr 23 '24 14:04 xmaiconx

@xmaiconx: increase the max file upload size for Qdrant in the custom config.yaml for Qdrant as per ur use case...this is not a limitation from flowise but Qdrant...i faced problem with a txt file of less than 1 mb. use the config.yaml for configuring Qdrant to accept big files. size of the source file is not the issue but the no of vectors that are being generated from the content of the file that is being pushed in Qdrant in a single go is the bottleneck...Qdrant by default accepts max 32 MB (33554432 bytes) in a single go...increase that size as per ur requirement and the problem goes away.

prithvi151080 avatar Apr 23 '24 19:04 prithvi151080

should be fixed via PR, closing for now

HenryHengZJ avatar May 05 '24 11:05 HenryHengZJ