Open SoniaSanzV opened 6 days ago
According to the docs, maxmind is currently the only geolocation provider supported by Elasticsearch:
At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured
This is also an upstream issue with Elasticsearch rather than the JS client. When ES expands support to include other providers, the spec will be updated to ensure all clients support those providers.
Hi @JoshMock, the Es documentation says that both maxmind
and ipinfo
are accepted as providers. Why does the JS client documentation say that only maxmind
is supported?
🐛 Bug report
ES js client version: 8.15
When creating an ip_location database with the JS client, it fails for non
maxmind
database types. This does not happen if we pass the body, which is marked as deprecated.For example, using
ipinfo
type as example, this is working as expected:But this is not working unless the type is maxmind.
And this is the response that I'm receiving.
To reproduce
Create a database with the client using a type but
maxmind
Expected behavior
I can create a database using the client
Node.js version
20.15.1
@elastic/elasticsearch version
8.15
Operating system
macOs
Any other relevant environment information
No response