An error occurs when connecting to AWS Opensearch. (SSH Turneling)

Hello. I am migrating from self-host type to cloud type.
Previously, AWS Open Search was connected normally.
Currently, it is failing in the test connection.


Error log

Test connection failed (1.649s):Error: First argument must be a number (400+): 200
HttpError {statusCode: 422, payload: Object}
statusCode: 422
payload: Object
statusCode: 422
error: "Unprocessable Entity"
message: "First argument must be a number (400+): 200"
data: null

The error message indicates that a function is expecting a numeric value as its first argument, but it received a string or an invalid type instead (in this case, "200"). To troubleshoot, ensure that the value being passed is indeed a number and not a string or another type, and check the data type of the variable before making the request. Additionally, verify that any calculations or transformations applied to the value are correctly returning a number.


settings


When I connect to curl from the bastion host with the same account information, it connects normally.
Is there anything I need to set additionally? Please help! :smiling_face_with_tear:

I tested it after setting the verification mode to 'Skip CA Certificate verification'. There are other options checked in the captured image. Since it was not modified, I am adding it as a comment.

This issue has been resolved. I solved it by running an nginx server on the bastion host and proxying it with open search. Please note.

Thanks for sharing your solution, @songhui.baek! Glad to hear you have it working. :+1: