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

Uncachable exeption occurs when connecting to a MySql DB

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

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

評価

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

調査の方向性

まず lib/client.js の _handleEmptyQuery 付近から始め、報告されたスタックトレースをもとに lib/connection.js と pg-protocol/src/parser.ts を調べます。提供された接続パラメータで障害を再現し、クライアントが MySQL と PostgreSQL のどちらで使用されているのかを確認します。完了条件は、最小限の再現手順が確認され、期待される動作が定義されていることです。

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

説明

Hello;
when passing connection parameters related to a running mysql Db, Client is breaking with an uncacheable error wether i use promises or call back:

/usr/src/app/node_modules/pg/lib/client.js:386    
this.activeQuery.handleEmptyQuery(this.connection)
                     ^

TypeError: Cannot read properties of undefined (reading 'handleEmptyQuery')
    at Client._handleEmptyQuery (/usr/src/app/node_modules/pg/lib/client.js:386:22)
    at Connection.emit (node:events:518:28)
    at /usr/src/app/node_modules/pg/lib/connection.js:116:12
    at Parser.parse (/usr/src/app/node_modules/pg-protocol/src/parser.ts:103:9)
    at Socket.<anonymous> (/usr/src/app/node_modules/pg-protocol/src/index.ts:7:48)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23)

Node.js v20.11.1
主要言語
JavaScript
スター
13.2k
フォーク
1.4k
平均マージ
6日 15時間
マージ済み PR(30日)
6

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

brianc/node-postgres のほかの issue

brianc/node-postgres の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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