Lambda Invocation Type is always "RequestResponse" #459
Labels
bug
Something isn't working
feature-request
Request a new feature
lambda
Issues with the AWS Android SDK for Lambda.
To help us solve your problem better, please answer the following list of questions.
What service are you using?
Lambda
In what version of SDK are you facing the problem?
2.6.19
Is the issue limited to Simulators / Actual Devices?
All devices
Can your problem be resolved if you bump to a higher version of SDK?
No
Is this problem related to specific Android/OS version?
No
Can you give us steps to reproduce with a minimal, complete, and verifiable example? Please include any specific network conditions that might be required to reproduce the problem.
LambdaInvocationHandler.java has the following piece of code:
The condition always evaluates to true and hence specifying Event/DryRun invocationType in the annotation have no effect.
There is a lint warning that indicates the above problem as well:
'equals()' between objects of inconvertible types 'LogType' and 'String'
You can also check it easily that
LogType.None.equals("None")
evaluates to false due to the above.When request and HTTP client logging are enabled, we can clearly see that the
X-Amz-Invocation-Type
header is always set toRequestResponse
even if we have the annotation set correctly as@LambdaFunction(invocationType = "Event")
If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application by using Mobile Hub.
The text was updated successfully, but these errors were encountered: