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

AWS lambda native from documentation doesn't work properly #20689

Closed
Aleksandr-Filichkin opened this issue Oct 12, 2021 · 10 comments · Fixed by #20747
Closed

AWS lambda native from documentation doesn't work properly #20689

Aleksandr-Filichkin opened this issue Oct 12, 2021 · 10 comments · Fixed by #20747
Labels
area/amazon-lambda kind/bug Something isn't working
Milestone

Comments

@Aleksandr-Filichkin
Copy link

Describe the bug

The problem is that the first invocation doesn't work, but the second is good.

Expected behavior

No exception in log for the first invocation.

Actual behavior

The problem is that the first invocation doesn't work, but the second is good.
The first invocation
image

The second invocation
image

How to Reproduce?

Hi,

I created a simple test project using https://quarkus.io/guides/amazon-lambda and maven
mvn archetype:generate \ -DarchetypeGroupId=io.quarkus \ -DarchetypeArtifactId=quarkus-amazon-lambda-archetype \ -DarchetypeVersion=2.3.0.Final
All code is here
https://github.com/Aleksandr-Filichkin/quarkus-lambda-issue

I deployed the lambda as native using sam deploy -t sam.native --guided.

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.3.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

mvn

Additional information

No response

@Aleksandr-Filichkin Aleksandr-Filichkin added the kind/bug Something isn't working label Oct 12, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 12, 2021

/cc @matejvasek, @patriot1burke

@Aleksandr-Filichkin
Copy link
Author

I built the native file using Docker:

quarkus.native.container-build=true
quarkus.native.container-runtime=docker

@Aleksandr-Filichkin
Copy link
Author

I switched to the previous version "2.2.3.Final" and everything works fine.

@Aleksandr-Filichkin
Copy link
Author

Also, I think it makes sense to fix maven archetype and do not add the test which cannot be compiled. Or maybe I missed something.
As for me, the hello-world example should work without any manual changes.
https://github.com/Aleksandr-Filichkin/quarkus-lambda-issue/blob/master/src/test/java/test/LambdaHandlerTest.java
image

@geoand
Copy link
Contributor

geoand commented Oct 12, 2021

@patriot1burke people are reporting the same thing on Zulip as well

@geoand
Copy link
Contributor

geoand commented Oct 12, 2021

@stuartwdouglas I wonder if 363a042 affected this somehow

@patriot1burke
Copy link
Contributor

Ok, I'll fix this stuff. Probably the live coding stuff broke things.

@geoand
Copy link
Contributor

geoand commented Oct 12, 2021

Great, thanks

@patriot1burke
Copy link
Contributor

I can reproduce this from a real lambda deployment, but not in a local test environment. The poll loop is polling a successful request, but it has an empty body from lambda server.

@patriot1burke
Copy link
Contributor

fix incoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/amazon-lambda kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants