ElasticSearch Driver: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
Describe the bug When Running the elasticsearch driver in the latest version I get the following: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
To Reproduce Steps to reproduce the behavior: Use ElasticSearch Cloud driver with demo data and CubeJS playground
Expected behavior No error on requesting data from elastic
Screenshots If applicable, add screenshots to help explain your problem.
Version: 0.19.13
Additional context
This issue is caused by passing empty strings in Client initializer for ElasticSearch
Should maybe have a graceful way of notifying the user?
@chad-codeworkshop Hey Chad! Do you mean we need add sanity check to see if arguments passed? I believe it'd be helpful.
@chad-codeworkshop Hey Chad! Do you mean we need add sanity check to see if arguments passed? I believe it'd be helpful.
Yeah, i spent about an hour tracking down the issue and it was something as simple as environment variables not being set, so the elastic Client failed
I will start having a look at how to implement this in the coming week
If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.