compwright/aws-elasticsearch-connector

Broken with @elastic/elasticsearch@7.14.0

oguimbal opened this issue · 6 comments

Hi !

FYI

Hello! @oguimbal
I tried to use @elastic/elasticsearch 7.13, but it still return me this issue. Do you have a workaround for this?
image

Really ?
I just double-checked, its working for us in production with @elastic/elasticsearch@7.13 (and aws-elasticsearch-connector@9.0.3) 😕

Hello! @oguimbal
I tried to use @elastic/elasticsearch 7.13, but it still return me this issue. Do you have a workaround for this?
image

Check you lock file. You have targeted ^7.13.0. which may install a later minor version, e.g. 7.14.0 which is the one seemingly introducing the problem. Change your dependency to "7.13.0" to ensure that you are running the expected version.

I tried different 7.x versions. It works with @elastic/elasticsearch@7.6.0. I get the above error with 7.7.0 and newer ones.
I am using

  • node v16.8.0
  • npm v7.21.0

@compwright doesn't seem to be fixed.
I'm guetting the same error using @elastic/elasticsearch@7.10.0 and aws-elasticsearch-connector@9.2.0 on a .search():

TypeError: Cannot read properties of null (reading 'then')
    at Object.then (/project/node_modules/@elastic/elasticsearch/lib/Transport.js:151:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

@luisfavila please provide a complete example that reproduces the issue. If you can provide that, I'll reopen this issue and work on a fix.