Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed hanging when python raises exception or return nothing #1365

Merged
merged 3 commits into from
May 5, 2022

Conversation

ALOHACREPES345
Copy link
Contributor

@ALOHACREPES345 ALOHACREPES345 commented Apr 9, 2022

Description

close #1089

added error handling if invoked python raised exception

close #1366

since python returns null object when nothing returned from invoked code, current js code mistakenly recognizes python is still running even if it's finished.
And also, when python returns "", current js code misunderstand. (Since js recognize "" as false)

Motivation and Context

#1089
#1366

How Has This Been Tested?

manual testing with using Sample Code in #1366.
Case A: with current code.
Case B: with fixed code.

Screenshots (if appropriate):

BeforeAfter

@dherault
Copy link
Owner

Hi, could you make sure the test pass? Thanks @ALOHACREPES345

@ALOHACREPES345
Copy link
Contributor Author

@dherault
Sorry.
I run the unit test in local, and confirmed it passed, but the command was wrong.

I revised newly added test cases. These are similar to tests/integration/lambda-invoke/lambdaInvoke.test.js, but focusing on to python.

Copy link
Owner

@dherault dherault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, will merge

@kristinlindquist
Copy link

Hello. Just ran into this problem in 12.0.4 and was pretty confused. Should this ticket be reopened because the PR was ultimately reverted? 2b5a2d7

@courentin
Copy link

Hello, sorry to dig a 2 years issue but I think I also have this issue in 13.3.3, can I open a PR that reverts the revert?

@dherault by any chance, do you remember why it was reverted?

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.

hangs if python raises exception or returns nothing. Hangs if python exception in lambda_handler
4 participants