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

ValidationError on startup

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
postgresql, python, vscode
領域
database, tooling

調査の方向性

ossdbtoolsservice_main.py から始め、ossdbtoolsservice/mcp_server/main.py と mcp_server.py を通じて、traceback に示されている Settings の初期化までスタートアップ時の import を追跡します。設定されたログレベルが受け入れられる値と一致することを確認し、その後、拡張機能からのスタートアップを再現して、PostgreSQL Tools Service が接続されたままであることを確認します。

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

説明

Hello ! Sounds like there is an issue somewhere but I can't find that log setting anywhere.

Describe the bug

When I start the extension I have this message :

pgsql: PostgreSQL Tools Service terminated unexpectedly.

Related to this log :

Traceback (most recent call last):
File "ossdbtoolsservice_main.py", line 16, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "ossdbtoolsservice/mcp_server/main.py", line 18, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "ossdbtoolsservice/mcp_server/mcp_server.py", line 7, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "fastmcp/init.py", line 8, in
File "pydantic_settings/main.py", line 188, in init
File "pydantic/main.py", line 253, in init
pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings
log_level
Input should be 'DEBUG', 'INFO', 'WARNING', 'ERROR' or 'CRITICAL' [type=literal_error, input_value='WARN', input_type=str]
For further information visit https://errors.pydantic.dev/2.11/v/literal_error
[PYI-11258:ERROR] Failed to execute script 'ossdbtoolsservice_main' due to unhandled exception!
[Error - 2:42:22 PM] Connection to server got closed. Server will not be restarted.

To Reproduce

Steps to reproduce the behavior:

  1. Install the extension (last version 1.22.0)
  2. Click on the extension's tab, in attempt to create a new connection.

Expected behavior

Well... just a starting extension where I could create a connection

VS Code version

Version: 1.120.0 (user setup)
Commit: 0958016b2af9f09bb4257e0df4a95e2f90590f9f
Date: 2026-05-12T20:17:22Z
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26100

主要言語
言語のデータがありません
スター
395
フォーク
33
平均マージ
1日 1時間
マージ済み PR(30日)
2

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

microsoft/vscode-pgsql のほかの issue

microsoft/vscode-pgsql の issue をすべて見る

似ている issue

Databases の issue をもっと見る

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

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