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
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