Skip to content

Conversation

adamchainz
Copy link
Contributor

Some improvements on exactly how return values are JSON serialized and what can happen in error cases.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mwunderl
Copy link
Member

Thanks for your feedback. This may have been an issue with earlier Python runtimes.

I checked 3.6 and 3.7 with the following code-

def lambda_handler(event, context):
    f = open("/tmp/test",'wb')
    return f

I get the serialization error but no indication that the runtime crashed.
Merging just the note about serialization method.

@mwunderl mwunderl merged commit 56bb0aa into awsdocs:master Jun 24, 2019
@adamchainz
Copy link
Contributor Author

Yes maybe it has been dealt with since... nearly a year since I submitted the PR :)

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

Successfully merging this pull request may close these issues.

2 participants