Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Несовместимость с tarantool:2.11, на запросы приходит ответ "undefined" #52

Open
ngalkin91 opened this issue May 2, 2024 · 3 comments
Assignees

Comments

@ngalkin91
Copy link

Столкнулся предположительно с несовместимостью драйвера с tarantool версий 2.11.* - на все запросы возвращается ответ undefined.

Шаги для воспроизведения:

  1. создать packages.json:
{
  "dependencies": {
    "tarantool-driver": "^3.0.6"
  }
}
  1. создать index.js:
const TarantoolConnection = require('tarantool-driver');

var conn = new TarantoolConnection({ host: '127.0.0.1', port: 3301 })

conn.eval('return 2 + 2').then(function (res) {
    console.log(res)
})
  1. выполнить:
npm i
  1. выполнить docker run --name tarantool -p 3301:3301 -d --rm tarantool/tarantool:2.11.3

  2. выполнить node index.js

  3. получаем ответ: undefined

При этом если выполнять тот же самый код на старой версии, например tarantool/tarantool:1.10.15, то получаем корректный ответ: [ 4 ]

@Talkytitan5127
Copy link

when use credentials to connect to tarantool, conn.eval raise error
image

@sergos
Copy link
Contributor

sergos commented May 13, 2024

Have a try - pushed new fixup.

@ngalkin91
Copy link
Author

Have a try - pushed new fixup.

Now it works, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants