quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.37k stars 2.56k forks source link

Live coding and Dev UI are stuck when "quarkus-amazon-lambda-http" extension is added #26904

Open danieloh30 opened 1 year ago

danieloh30 commented 1 year ago

Describe the bug

Live coding and Dev UI are stuck when the "quarkus-amazon-lambda-http" extension is added. 2022-07-23 17:37:24,769 INFO [io.qua.ama.lam.run.MockEventServer] (build-34) Mock Lambda Event Server Started


--/ \/ / / / | / \/ //_/ / / / / -/ // / // / |/ , / ,< / // /\ \
--_
__// |//|//||____//
2022-07-23 17:37:25,477 INFO [io.qua.ama.lam.run.AbstractLambdaPollLoop] (Lambda Thread (DEVELOPMENT)) Listening on: http://localhost:8080/_lambda_/2018-06-01/runtime/invocation/next

2022-07-23 17:37:25,532 INFO [io.quarkus] (Quarkus Main Thread) enter-serverless-function 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.10.2.Final) started in 1.731s. 2022-07-23 17:37:25,537 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated. 2022-07-23 17:37:25,538 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [amazon-lambda, cdi, resteasy-reactive, security, smallrye-context-propagation, vertx]

-- Tests paused Press [r] to resume testing, [o] Toggle test output, [:] for the terminal, [h] for more options>

When the "Mock Lambda Event Server Started" gets started, all requests (e.g. curl localhost:8080/hello) have no response.

image

Expected behavior

The DEV UI shows the read-only terminal, as well as REST APIs, should return the result.

Also, live coding should work.

Actual behavior

No response to access the RESTful APIs.

Live coding doesn't work.

How to Reproduce?

  1. Create a new project via quarkus CLI like "create enter-serverless-function"
  2. Add an AWS Lambda extension like "quarkus ext add quarkus-amazon-lambda-http"
  3. Run a Quarkus dev mode like "quarkus dev"
  4. Open a DEV UI or/and access the RESTful API using the curl command

Output of uname -a or ver

Darwin Daniels-MacBook-Pro 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 x86_64

Output of java -version

openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.10.3.Final

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

Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)

Additional information

No response

quarkus-bot[bot] commented 1 year ago

/cc @matejvasek, @patriot1burke

danieloh30 commented 1 year ago

@patriot1burke any clues?

patriot1burke commented 1 year ago

Long standing issue that requires rewrite of dev ui http handling. Don't use the dev ui.

danieloh30 commented 1 year ago

It's not only about DEV UI but also there's no response when I invoke the RESTful APIs using the curl command.

patriot1burke commented 1 year ago

If you run the DEV UI then invoke RESTful APIs it just hangs.

danieloh30 commented 1 year ago

Interesting. So if I don't open DEV UI, live coding works well?