You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constclient=newClient({
...AwsSigv4Signer({region: AWS_REGION,service: 'es',// Example with AWS SDK V2:getCredentials: ()=>newPromise((resolve,reject)=>{// Any other method to acquire a new Credentials object can be used.AWS.config.getCredentials((err,credentials)=>{if(err){reject(err);}else{logger.info('credentials',credentials);}});}),}),node: 'mydomain.url',// OpenSearch domain URL});
For serverless, the service name is aoss, not es. I don't know what the logging problem is, but I do have a tested end-to-end working sample in https://github.com/dblock/opensearch-node-client-demo that you might want to compare your code with.
I'm going to close this here but feel free to ask more questions. A better place to get help is the public slack#clients channel. If you/we find any bugs we can definitely open them here.
Describe the bug
I am trying to integrate OpenSearch Javascript Client with Serverless Node application.
I have setup the client as follows
And used as
However I am not getting logs after the await search call. open search connection logs as alive
Also when I try to connect to local OpenSearch Cluster using docker.
const client = new Client({
node:
http://admin:admin@localhost:5601
,})
above same function returns error
Related component
Clients
To Reproduce
const client = new Client({
node:
http://admin:admin@localhost:5601
,})
Expected behavior
no error
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: