I have an edge function that is modifying the request headers. Whenever I make a POST request to any of my API endpoints, the result is a gateway timeout error. The logs of the lambda function shows nothing as if it was never called. With GET method however, the edge function successfully calls my lambda and returns the response.
Either this is a bug or there is something that I am missing.
@hrishikesh Your curl request works for me as well. However, If I set the header Content-Length to 0 (which postman does automatically), the result is again a gateway timeout error.
it does not. I was just wondering if you had a specific requirement for it.
Because, that would help us prioritize the issue. If your use case is to send POST with body and that doesn’t have this problem, we can work on this issue after taking care of more urgent issues.
If you had a use case in which an empty POST body is a hard requirement and you’re blocked because of this issue, it would have got a little more priority.