Website visitor counter showing up as "[object Object]"

I am trying to setup a view counter for the AWS #CloudResumeChallenge. I am following the instructions on these two youtube videos: "Cloud Resume Challenge Sprint (Sept, 2022) – Week 2" -> https://youtu.be/vOZ-sMgAUFk "Setup CORS (with AWS Lambda & API Gateway) – The Cloud Resume Challenge Series (Part 10)" -> https://youtu.be/MsFYWnjP39M I am also using… Read More Website visitor counter showing up as "[object Object]"

How to give HTTP API or REST API with Lambda, the ability to not update?

So I have a Lambda Function with the code below, which is triggered by an API (AWS API Gateway). import json def lambda_handler(event, context): testString = "foo" if "f" in testString: return { "statusCode": 200, "body": json.dumps(testString) } I tested it with both a HTTP API and a REST API. Because the condition returns True,… Read More How to give HTTP API or REST API with Lambda, the ability to not update?

Curl URL with double quote

I’m trying to formulate URL string in CURL request as: curl -v –location –request GET "https://proxy-xxx.execute-api.ap-southeast-1.amazonaws.com/dev/proxy?path=\"https://target-xxx/api/v1/resource?q1=a&q2=b&q3=c\"" where I will pass "https://target-xxx/api/v1/resource?q1=a&q2=b&q3=c\" as query string to path variable in double quote. Tested on API gateway console with path="https://target-xxx/api/v1/resource?q1=a&q2=b&q3=c" works fine. However CURL hit bad request 400, and aws api gateway don’t have received. I believe URL… Read More Curl URL with double quote