Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sms_logger error #1203

Open
dragelecpc opened this issue May 27, 2024 · 0 comments
Open

sms_logger error #1203

dragelecpc opened this issue May 27, 2024 · 0 comments

Comments

@dragelecpc
Copy link

Dear team, i try to run the sms_logger script and got this error

***************** sms_logger *****************
*** Staring sms_logger, DB drive: MySQL


*** Connected to broker, authenticating: guest
*** Authenticated. Ready to receive messages
*** Pooling 20 connections
*** Connected to MySQL
*** submit_log table already exist
*** Got resp of an unknown submit_sm: 598b572b-fba2-4918-a6bd-50f53127ff0c
Unhandled Error
Traceback (most recent call last):
File "/home/jasmin/jasmin_log/env/lib/python3.10/site-packages/twisted/internet/defer.py", line 661, in callback
self._startRunCallbacks(result)
File "/home/jasmin/jasmin_log/env/lib/python3.10/site-packages/twisted/internet/defer.py", line 763, in _startRunCallbacks
self._runCallbacks()
File "/home/jasmin/jasmin_log/env/lib/python3.10/site-packages/twisted/internet/defer.py", line 857, in _runCallbacks
current.result = callback( # type: ignore[misc]
File "/home/jasmin/jasmin_log/env/lib/python3.10/site-packages/twisted/internet/defer.py", line 1750, in gotResult
current_context.run(_inlineCallbacks, r, gen, status)
--- ---
File "/home/jasmin/jasmin_log/env/lib/python3.10/site-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
result = current_context.run(gen.send, result)
File "/home/jasmin/jasmin_log/sms_logger.py", line 346, in gotConnection
cursor.execute(insert_log, (
File "/home/jasmin/jasmin_log/env/lib/python3.10/site-packages/mysql/connector/cursor_cext.py", line 359, in execute
prepared = self._cnx.prepare_for_mysql(params)
File "/home/jasmin/jasmin_log/env/lib/python3.10/site-packages/mysql/connector/connection_cext.py", line 866, in prepare_for_mysql
result = self._cmysql.convert_to_mysql(*params)
_mysql_connector.MySQLInterfaceError: Python type CommandStatus cannot be converted
Maybe some error with log type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant