From a93172f12363c2d489c89d2cfa4c26f52bff1489 Mon Sep 17 00:00:00 2001 From: Michael Robellard Date: Tue, 25 Mar 2025 10:15:18 -0500 Subject: [PATCH] Fix Error in get_remaining_time_in_millis Fix Error: unsupported operand type(s) for -: 'str' and 'int' --- packages/sst/support/python-runtime/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sst/support/python-runtime/runtime.py b/packages/sst/support/python-runtime/runtime.py index 769fea818..126626930 100644 --- a/packages/sst/support/python-runtime/runtime.py +++ b/packages/sst/support/python-runtime/runtime.py @@ -77,7 +77,7 @@ def handleUnserializable(obj): context = Context( r.getheader('Lambda-Runtime-Invoked-Function-Arn'), r.getheader('Lambda-Runtime-Aws-Request-Id'), - r.getheader('Lambda-Runtime-Deadline-Ms'), + int(r.getheader('Lambda-Runtime-Deadline-Ms')), r.getheader('Lambda-Runtime-Cognito-Identity'), r.getheader('Lambda-Runtime-Client-Context'), r.getheader('Lambda-Runtime-Log-Group-Name'),