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
Version
spring-cloud-function-adapter-aws - 4.1.2
AWS Context is coming as null from header. As mentioned in the document application was expecting context from Message header.
ex:
publicclassSimpleFunctionimplementsFunction<Message<String>, String> {
publicStringapply(Message<String> s) {
Contextc = s.getHeaders().get(AWSLambdaUtils.AWS_CONTEXT, Context.class);
log.info(c.getInvokedFunctionArn());
// context is coming as null
}
}
I found this issue reported but it seems was fixed on 4.0.2 however in 4.1.2 the problem is present. My function run as native image with graalvm 21.0.2
Can you please test it with 4.1.4-SNAPSHOT and see if Context comes in as null? I just added a log (warn).
I am wondering if somehow natively Context is not coming thru
Describe the bug
Version
spring-cloud-function-adapter-aws - 4.1.2
AWS Context is coming as null from header. As mentioned in the document application was expecting context from Message header.
ex:
I found this issue reported but it seems was fixed on 4.0.2 however in 4.1.2 the problem is present. My function run as native image with graalvm 21.0.2
Error Stacktrace:
The text was updated successfully, but these errors were encountered: