Uploaded image for project: 'MariaDB Connector/node.js'
  1. MariaDB Connector/node.js
  2. CONJS-280

Error when connecting to database on 11.3.2

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 3.2.3
    • 3.3.0
    • authentication
    • None
    • MariaDB Docker image 11.3.2
      Both Node 18 and 20
      GitHub Actions

    Description

      EDIT: Issue resolved, see https://github.com/MariaDB/mariadb-docker/issues/560 for more information and the fix

      Hi there! Over at sequelize, a database ORM that uses this package as the adapter for mariadb we automatically update to the latest version of the mariadb Docker image. Today, with 11.3.2, this failed. It works fine on 11.2.3

      When trying to make a connection, we encounter this error;
      TypeError: Cannot read properties of undefined (reading 'index')
      at Function.send (/home/runner/work/sequelize/sequelize/node_modules/mariadb/lib/cmd/handshake/auth/handshake.js:93:104)
      at Handshake.parseHandshakeInit (/home/runner/work/sequelize/sequelize/node_modules/mariadb/lib/cmd/handshake/auth/handshake.js:57:17)
      at Authentication.onPacketReceive (/home/runner/work/sequelize/sequelize/node_modules/mariadb/lib/cmd/handshake/authentication.js:38:17)
      at PacketInputStream.receivePacketBasic (/home/runner/work/sequelize/sequelize/node_modules/mariadb/lib/io/packet-input-stream.js:85:9)
      at PacketInputStream.onData (/home/runner/work/sequelize/sequelize/node_modules/mariadb/lib/io/packet-input-stream.js:135:20)
      at Socket.emit (node:events:517:28)
      at Socket.emit (node:domain:489:12)
      at addChunk (node:internal/streams/readable:368:12)
      at readableAddChunk (node:internal/streams/readable:341:9)
      at Socket.Readable.push (node:internal/streams/readable:278:10)

      We are using version 3.2.3 of this package. Is this already a known issue? I could not an open issue on GitHub or Jira relating to this.

      For more info you can check out the failing PR here;https://github.com/sequelize/sequelize/pull/17113

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              WikiRik Rik Smale
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.