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

Possible TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: <ref *1> Handshake

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • 2.5.1
    • other
    • None

    Description

      see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/132.

      Unexpected error is thrown during connection :

      TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: <ref *1> Handshake {
        _events: [Object: null prototype],
        _eventsCount: 1,
        _maxListeners: undefined,
        sequenceNo: 1,
        compressSequenceNo: -1,
        resolve: [Function: bound _authSucceedHandler],
        reject: [Function: bound _authFailHandler],
        sending: false,
        _createSecureContext: [Function: bound _createSecureContext],
        _addCommand: [Function: bound _addCommandEnable],
        getSocket: [Function: _getSocket],
        onPacketReceive: [Function: parseHandshakeInit],
        plugin: [Circular *1],
        [Symbol(kCapture)]: false
      }
          at new NodeError (internal/errors.js:253:15)
          at Socket.Writable.write (_stream_writable.js:296:13)
          at PacketOutputStream.flushBufferBasic (/.../rollup-demo/modules/esm/rollup-koa/node_modules/mariadb/lib/io/packet-output-stream.js:444:17)
          at Object.send (/.../rollup-demo/modules/esm/rollup-koa/node_modules/mariadb/lib/cmd/handshake/client-handshake-response.js:118:7)
          at Handshake.parseHandshakeInit (/.../rollup-demo/modules/esm/rollup-koa/node_modules/mariadb/lib/cmd/handshake/handshake.js:82:31)
          at PacketInputStream.receivePacketBasic (/.../rollup-demo/modules/esm/rollup-koa/node_modules/mariadb/lib/io/packet-input-stream.js:104:9)
          at PacketInputStream.onData (/.../rollup-demo/modules/esm/rollup-koa/node_modules/mariadb/lib/io/packet-input-stream.js:169:20)
          at Socket.emit (events.js:326:20)
          at addChunk (_stream_readable.js:322:12)
          at readableAddChunk (_stream_readable.js:297:9) {
        code: 'ERR_UNKNOWN_ENCODING'
      

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.