quarkus: problem using quarkus-resteasy-reactive-kotlin-serialization with AwsProxyRequestContext
Hi All,
I’m trying to use quarkus-resteasy-reactive-kotlin-serialization on a Kotlin jax-rs reactive endpoint deployed on AWS. Below the method signature:
@POST
@Path("/send")
fun signUp(request: RegistrationRequest, @Context context: AwsProxyRequestContext): RegistrationResult? =
service.signUp(request, awsRequestId = request.requestId)
Unfortunately, Quarkus returns Bad request when trying to call this endpoint from APIGateway test page. No error is shown since quarkus itself intercept the request without accessing the method body.
After some trials, I managed to be able to access the context object by using quarkus-resteasy-jackson (so, no kotlin-serialization nor reactive), but this is not what I want to obtain.
Am I missing something?
Thanks for all your work!!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (8 by maintainers)
Commits related to this issue
- Ensure that AwsProxyRequestContext can be used with @Context in RESTEasy Reactive Fixes: #23442 — committed to geoand/quarkus by geoand a year ago
- Merge pull request #30776 from geoand/#23442 Ensure that AwsProxyRequestContext can be used with @Context in RESTEasy Reactive — committed to quarkusio/quarkus by geoand a year ago
- Ensure that AwsProxyRequestContext can be used with @Context in RESTEasy Reactive Fixes: #23442 (cherry picked from commit fc790db47cf55ca1d53e98953314c86df1d8d38b) — committed to gsmet/quarkus by geoand a year ago
- Update all non-major dependencies (mulk/mulkcms2!18) This MR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [com.diffplug.spotless:spotless-maven-plugin](ht... — committed to benkard/mulkcms2 by benkard a year ago
Yes, Jackson is the only tested way to deserialize input for
quarkus-amazon-lambda-restCan’t say since I’ve never tried something like that. @evanchooly might now more