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

tds.py line 1519 info message 'Got LOGINACK' causes runtime error #112

Open
NNDBA opened this issue Mar 19, 2020 · 0 comments
Open

tds.py line 1519 info message 'Got LOGINACK' causes runtime error #112

NNDBA opened this issue Mar 19, 2020 · 0 comments

Comments

@NNDBA
Copy link

NNDBA commented Mar 19, 2020

When connecting to a SQL Server 2017 database, we get this error, which is caused by a logger.info message. The work-around is setting the logging level to WARNING.

File "/var/task/pytds/tds.py", line 1520, in process_login_tokens
self.conn.tds_version, self.conn.product_name, product_version)
File "/var/lang/lib/python3.6/logging/init.py", line 1308, in info
self._log(INFO, msg, args, **kwargs)
File "/var/lang/lib/python3.6/logging/init.py", line 1444, in _log
self.handle(record)
File "/var/lang/lib/python3.6/logging/init.py", line 1454, in handle
self.callHandlers(record)
File "/var/lang/lib/python3.6/logging/init.py", line 1516, in callHandlers
hdlr.handle(record)
File "/var/lang/lib/python3.6/logging/init.py", line 865, in handle
self.emit(record)
File "/var/runtime/awslambda/bootstrap.py", line 494, in emit
lambda_runtime.send_console_message(msg, byte_len(msg))
RuntimeError: Runtime received invalid arguments

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