“errorMessage”: “string argument without an encoding”, [duplicate]
问题 This question already has answers here : TypeError: string argument without an encoding (3 answers) Closed yesterday . I'm trying to save password string encrypted in DynamoDb, I get this error. Response: { "errorMessage": "string argument without an encoding", "errorType": "TypeError", "stackTrace": [ " File \"/var/task/lambda_function.py\", line 25, in lambda_handler\n encrypted_password = encrypt(session, plain_text_password, key_alias)\n", " File \"/var/task/lambda_function.py\", line 11,