You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This is probably more of a documentation problem than anything else. In the Funqy documentation, it suggests that Context Injection is possible via the @Context annotation.
Whatever I have tried I have not been able to inject an AWS context, no matter whether I'm running on SAM Local or on AWS - nothing is injected against the @Context annotation.
Expected behavior
A context object is injected, allowing me to access contextual information about the container. In the case of AWS this should be an implementation of com.amazonaws.services.lambda.runtime.Context.
Actual behavior
The context object is null.
To Reproduce
Steps to reproduce the behavior:
Check out the Funqy Amazon Lambda HTTP Quickstart
Modify GreetingFunction.java: public Greeting greet(Friend friend, @Context com.amazonaws.services.lambda.runtime.Context context) {
Run
Invoking the function via PostMan, the context object is null.
Environment (please complete the following information):
Output of uname -a or ver: NA
Output of java -version: lambci/lambda:java11 Docker container image
GraalVM version (if different from Java): NA
Quarkus version or git rev: 1.6.0
Build tool (ie. output of mvnw --version or gradlew --version): 3.6.3
Additional context
Like I said, it's hard to know if this is a bug in Quarkus or a bug in the documentation. I realise that Funqy is a work in progress; perhaps I'm being too eager?
The text was updated successfully, but these errors were encountered:
@dpiotti Yes, don't use Funqy, use Quarkus Amazon Lambda integration. Funqy is supposed to be cross-platform and independent of Amazon APIs. I gotta fix the docs. Should never have put that example in.
The PR improving this documentation has been merged recently #10693. Closing this issue. Please re-open or create a new one if there's still some confusion around the usage.
Describe the bug
This is probably more of a documentation problem than anything else. In the Funqy documentation, it suggests that Context Injection is possible via the
@Context
annotation.Whatever I have tried I have not been able to inject an AWS context, no matter whether I'm running on SAM Local or on AWS - nothing is injected against the
@Context
annotation.Expected behavior
A context object is injected, allowing me to access contextual information about the container. In the case of AWS this should be an implementation of
com.amazonaws.services.lambda.runtime.Context
.Actual behavior
The context object is null.
To Reproduce
Steps to reproduce the behavior:
public Greeting greet(Friend friend, @Context com.amazonaws.services.lambda.runtime.Context context) {
Invoking the function via PostMan, the context object is null.
Environment (please complete the following information):
uname -a
orver
: NAjava -version
: lambci/lambda:java11 Docker container imagemvnw --version
orgradlew --version
): 3.6.3Additional context
Like I said, it's hard to know if this is a bug in Quarkus or a bug in the documentation. I realise that Funqy is a work in progress; perhaps I'm being too eager?
The text was updated successfully, but these errors were encountered: