Open JenteP opened 4 months ago
Hi @JenteP ,
Thanks for reaching out and for providing the context. In the new SDKs we are moving away from hand written customizations since they are creating feature parity gaps (as seen here). The behavior of this operation working correctly with POST and not with GET points to a service side problem.
I have created an internal ticket with the OpenSearch service team to try and address this P117425632
and will move this to the cross SDK repo for tracking.
Thanks, Ran~
Checkboxes for prior research
Describe the bug
We get an UnknownError (413) from the client when trying to search with a lot of clauses. Although it should still be below the 8kb limit specified in the documentation. In the aws v2 sdk there was a similar issue here in which the get request for the search domain was transformed to a post request. Because of this issue we were forced to downgrade the search client form the v3 sdk to v2.
SDK version number
@aws-sdk/client-cloudsearch-domain@3.496.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v18.16.0
Reproduction Steps
Observed Behavior
UnknownError {"name":"413","$fault":"client","$metadata":{"httpStatusCode":413,"attempts":1,"totalRetryDelay":0},"message":"UnknownError"}
Expected Behavior
Transform the get request to a post request on large queries
Possible Solution
See here
Additional Information/Context
No response