Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support on cache by body on POST request

See original GitHub issue


I’m getting “Internal Server Error” when I’m trying to configure a POST request.

Here is my function definition

    handler: src/handlers/postCached.handler
      - http:
          path: /cached/test
          method: post
          cors: true
            enabled: true
              - name: integration.request.header.bodyValue
                mappedFrom: method.request.body

And a body example:

  "email": ""

What is wrong?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

leeboy1984commented, Sep 19, 2022

I have found the problem, problem is related with binaryMediaTypes, if for any reason you have binaryMediaTypes: / lambda integration does not work

leeboy1984commented, Sep 19, 2022

The error I’m getting from API Gateway is the following: Execution failed due to configuration error: Unable to transform request

Any suggestion/idea?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Caching HTTP POST Requests and Responses
But HTTP caching is applicable only to idempotent requests, which makes a lot of ... The solution is to digest the POST body...
Read more >
Is it possible to cache POST methods in HTTP? - Stack Overflow
The POST response body can only be cached for subsequent GET requests to the same resource. Set the Location or Content-Location header in ......
Read more >
Cache POST requests · Cloudflare Workers docs
Cache POST requests using the Cache API. async function sha256(message) { ... Hash the request body to use it as a part of...
Read more >
Cache for post requests based on the body content - FAQ
hello. i am trying to set caching for my graphql end point.(i have some other rest end points too.) i see that there...
Read more >
Cache POST Responses - Akamai TechDocs
How it works By default, POST requests are passed to the origin. ... Adds the raw request body as a query parameter to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found