mysql / mysql/mysql-shell-plugins

Getting this error: TypeError: DbModuleSession.on_session_message() missing 1 required positional argument: 'result'

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
96
Forks
22
PR merge metrics
No merged PRs in 30d

Description

2:6:9.888314 ERROR: Thread ServiceSession-ee994889-1081-11f1-bcb4-d89c6776f4c6 exiting with code MySQL Error (1054): Unknown column 'sys' in 'where clause'

Exception in thread sql-ServiceSession-ee994889-1081-11f1-bcb4-d89c6776f4c6:

Traceback (most recent call last):

File "c:\Users\hriti.vscode\extensions\oracle.mysql-shell-for-vs-code-2026.2.0-win32-x64\shell\lib\Python3.13\Lib\threading.py", line 1043, in _bootstrap_inner
self.run()
~~~~~~~~^^
File "c:\Users\hriti.vscode\extensions\oracle.mysql-shell-for-vs-code-2026.2.0-win32-x64\shell\lib\mysqlsh\plugins\gui_plugin\core\dbms\DbSession.py", line 480, in run
self.terminate_thread()
~~~~~~~~~~~~~~~~~~~~~^^
File "c:\Users\hriti.vscode\extensions\oracle.mysql-shell-for-vs-code-2026.2.0-win32-x64\shell\lib\mysqlsh\plugins\gui_plugin\core\dbms\DbSession.py", line 247, in terminate_thread
self._message_callback('ERROR', self.thread_error)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: DbModuleSession.on_session_message() missing 1 required positional argument: 'result'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback in plugins/gui_plugin/core/dbms/DbSession.py, especially terminate_thread and the call to DbModuleSession.on_session_message. Trace the callback definition and reproduce the MySQL Error 1054 condition; done means the original database error is handled without raising the missing-result TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, python
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.