Internal Server Error when setting cache key parameter request.header.Authorization
Closed this issue · 2 comments
eggboy0 commented
I have the following in serverless.yml:
GET method that uses Lambda Proxy Integration:
caching:
enabled: true
cacheKeyParameters:
- name: request.header.Authorization
GET /api-path
Headers:
Authorization: Bearer <token>
However, this always yields no results due to Internal Server Error when there should be results.
By removing the caching for the method, it works fine.
I am using a custom Token-based lambda authorizer. The token source is "Authorization". Not sure if that makes a difference?
Here's the error I see from X-Ray trace:
Error 403: Execution failed due to configuration error: The request signature we calculated does not match the signature you provided.
Any ideas?
DianaIonita commented
DianaIonita commented