CloudSearch: use POST for search request #6610
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
service-api
This issue is due to a problem in a service API, not the SDK implementation.
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/[email protected]
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
The text was updated successfully, but these errors were encountered: