Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Error on running db: migrate with Node 18.17.9

オープン
#1,347 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, mariadb, node.js
領域
cli, databases

調査の方向性

Start by reproducing npx sequelize-cli db:migrate with the reported Node.js version and inspect the MariaDB authentication path shown in node_modules/mariadb/lib/cmd/handshake/auth/native-password-auth.js. Done means the migration command no longer raises ERR_INVALID_ARG_TYPE during the database handshake.

索引モデルが issue の本文から書いたものです。

説明

> npx sequelize-cli db:migrate

Sequelize CLI [Node: 18.17.0, CLI: 6.6.0, ORM: 6.31.1]

Loaded configuration file "config/config.json".
Using environment "development".
node:internal/crypto/hash:107
    throw new ERR_INVALID_ARG_TYPE(
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (3486)
    at new NodeError (node:internal/errors:405:5)
    at Hash.update (node:internal/crypto/hash:107:11)
    at NativePasswordAuth.encryptSha1Password (/home/keshav/Desktop/backend-sanket/Base-Node-Project-Template/node_modules/mariadb/lib/cmd/handshake/auth/native-password-auth.js:36:23)
    at Handshake.send (/home/keshav/Desktop/backend-sanket/Base-Node-Project-Template/node_modules/mariadb/lib/cmd/handshake/auth/handshake.js:102:40)
    at Handshake.parseHandshakeInit (/home/keshav/Desktop/backend-sanket/Base-Node-Project-Template/node_modules/mariadb/lib/cmd/handshake/auth/handshake.js:69:17)
    at Authentication.onPacketReceive (/home/keshav/Desktop/backend-sanket/Base-Node-Project-Template/node_modules/mariadb/lib/cmd/handshake/authentication.js:32:17)
    at PacketInputStream.receivePacketBasic (/home/keshav/Desktop/backend-sanket/Base-Node-Project-Template/node_modules/mariadb/lib/io/packet-input-stream.js:82:9)
    at PacketInputStream.onData (/home/keshav/Desktop/backend-sanket/Base-Node-Project-Template/node_modules/mariadb/lib/io/packet-input-stream.js:132:20)
    at Socket.emit (node:events:514:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
    at Readable.push (node:internal/streams/readable:234:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v18.17.0
主要言語
JavaScript
スター
2.6k
フォーク
524
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sequelize/cli のほかの issue

sequelize/cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。