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 - test case fails after adding qute dependency #24312

Closed
faskan opened this issue Mar 15, 2022 · 7 comments
Closed

AWS lambda - test case fails after adding qute dependency #24312

faskan opened this issue Mar 15, 2022 · 7 comments
Labels
area/amazon-lambda area/qute The template engine kind/bug Something isn't working triage/invalid This doesn't seem right

Comments

@faskan
Copy link

faskan commented Mar 15, 2022

Describe the bug

I am working on a Quarkus AWS lambda service that generates some html reports and uploads to S3. Unfortunately my test cases started failing (with a 404) after adding quarkus-resteasy-qute dependency.

I have replicated the same in a starter project (with AWS lambda) here.

Expected behavior

The test case should not fail when adding quarkus-resteasy-qute dependency

Actual behavior

Test case fails with a 404

How to Reproduce?

  1. Generate a quarkus starter project with AWS lambda
  2. Run the test case and everything works fine
  3. Add quarkus-resteasy-qute dependency
  4. Test case fails with 404

Output of uname -a or ver

Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64

Output of java -version

openjdk 11.0.11 2021-04-20

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.7.4.Final

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

Apache Maven 3.8.4

Additional information

No response

@faskan faskan added the kind/bug Something isn't working label Mar 15, 2022
@quarkus-bot quarkus-bot bot added the area/qute The template engine label Mar 15, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 15, 2022

/cc @mkouba

@mkouba
Copy link
Contributor

mkouba commented Mar 15, 2022

I don't think that you can just add the quarkus-resteasy-qute dependency or quarkus-resteasy and expect it to work OOTB. But I'm definitely not an amazon lambda expert. CC @geoand @patriot1burke

@mkouba mkouba changed the title Test case fails after adding qute dependency AWS lambda - test case fails after adding qute dependency Mar 15, 2022
@geoand
Copy link
Contributor

geoand commented Mar 15, 2022

Neither am I, but I also assume it won't work

@faskan
Copy link
Author

faskan commented Mar 15, 2022

I am not expecting it to work OOB. In my original project, I have a Template injected in to a service class and it generates reports and saves to S3. But as soon as I add this dependency, my test case starts failing.

@mkouba
Copy link
Contributor

mkouba commented Mar 15, 2022

I am not expecting it to work OOB.

I mean AWS lambda + resteasy to work together OOB.

@patriot1burke
Copy link
Contributor

quarkus-amazon-lambda-http (-rest) + resteasy + qute should work OOTB. (Doesn't resteasy + qute work OOTB?)

I'll try to replicate.

@patriot1burke
Copy link
Contributor

Sorry I didn't notice this before, but your project includes quarkus-resteasy-qute which will NOT work with regular lambda. I was able to run your project by including quarkus-qute (without resteasy). It would work with quarkus-amazon-lambda-http (or rest) which spins up an API gateway on AWS though.

Hope I'm making sense, I'm going to close this bug.

@geoand geoand added the triage/invalid This doesn't seem right label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/amazon-lambda area/qute The template engine kind/bug Something isn't working triage/invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants