Home > database >  Functional URL hit lambda twice
Functional URL hit lambda twice

Time:06-29

I am trying to make use of functional url in case of mono lambda function, I have created a functional url with no security.

URL was created successfully, but Not able to hit that url using postman. So I use chrome web browser to hit my url(Get request). But the problem was whenever I hit the url, My function gets executed twice.

If anyone have faced same issue, Please assist.

CodePudding user response:

There are two possibilities I can think off-

  1. Chrome/browser sending another request for favicon.png
  2. If you have configuration on server side that enforce HTTP to HTTPS conversion of the request, like re-direct to enforce SSL connection. In that case as well, browser send one request HTTP and redirect request to HTTPS. e.g when you hit- http://example.org, if it enforce the https, then again browser send another request to https://example.org.

You need to check possibilities here using network trouble shooting. Hope this will help you!

  • Related