goldcaddy77 / serverless-elasticsearch-client Goto Github PK
View Code? Open in Web Editor NEW๐ Elasticsearch client for AWS that plays nicely with serverless-offline and signed requests
License: MIT License
๐ Elasticsearch client for AWS that plays nicely with serverless-offline and signed requests
License: MIT License
Hello,
I tried to use the client in this way:
const createEsClient = require('serverless-elasticsearch-client') const client = createEsClient({ envPrefix: 'AWS_ES' })
but I got this error: offline: Failure: createEsClient is not a function
I use "serverless-elasticsearch-client": "^1.1.1"
Is it real issue or I'm doing something wrong ?
Hi!
Using the client.bulk
method on later versions of elasticsearch throws an error.
StatusCodeError: Content-Type header [application/x-ldjson] is not supported
Using:
serverless-elasticsearch-client version: 1.1.1
Elasticsearch version: 6.7
According to below discussions later releases of Elasticsearch are not supporting application/x-ldjson for the bulk request. The problem will be resolved by upgrading the js plugin dependency of elasticsearch (12.1.3) in package.json to a newer version.
See this discussion: https://discuss.elastic.co/t/node-bulk-indexing-not-working-content-type-header-application-x-ldjson-is-not-supported/114944
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.