Skip to content

API Gateway ProxyRequestEvent and Context missing key value pairs #41

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

Closed
tauriello opened this issue Feb 5, 2018 · 4 comments
Closed

Comments

@tauriello
Copy link

In the APIGatewayProxyRequestEvent pojo the key/value for '$context.requestTimeEpoch' (Reference) does not exist. Also appears to be the same for '$context.requestTime'.

@tauriello
Copy link
Author

In addition the key/value for '$context.authorizer' and '$context.authorizer.*' others as well.

@tauriello tauriello changed the title APIGatewayProxyRequestEvent Request Time Epoch API Gateway ProxyRequestEvent and Context missing key value pairs Jun 12, 2018
@pradychin
Copy link

I am having the same issue.. seeing $context.requestTimeEpoch as blank...
How did you solve this issue?

@onema
Copy link

onema commented Sep 27, 2018

NOTE: The following is by no means an answer to the question

The aws-serverless-java-container-core package has a AwsProxyRequestPOJO that is serialized better than this library POJOs. I have been using it as a workaround and I have been able to get most of the information I need when using a custom authorizer with Cognito!

lucasam pushed a commit to lucasam/aws-lambda-java-libs that referenced this issue Jul 28, 2019
 * extendedRequestId
 * requestTime
 * requestTimeEpoch
 * domainName
 * protocol
 * connectionId
 * routeKey
 * messageId
 * eventType
 * messageDirection
 * connectedAt
 Fixes issues
 aws#88
 aws#76
 aws#71
 aws#41
@carlzogh
Copy link
Contributor

Hey @tauriello, support for API Gateway WebSocket API events was released in version 2.2.7 of the aws-lambda-java-events library as APIGatewayV2ProxyRequest and APIGatewayV2ProxyResponse events.

These V2 models include the fields you're looking for:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants