I have to save a couple of different urls in some variable and then I have to return them from AWS Lambda function using json.dumps. I am trying the below method but it's giving me the error "errorMessage": "unhashable type: 'dict'". Code is given below.
response1 = { "statusCode": 200, "message": "Audio File uploaded successfully", "Link": some_variable1}
response2 = { "statusCode": 200, "message": "Spectrograph uploaded successfully", "Link": some_variable2}
response3 = {response1, response2}
return {
'statusCode': 200,
'body': json.dumps(response3)
}
Any idea how to get it working?