Hello, My goal is connect Monday with lambda function. Lambda have to get some info via webhook and create new project in AWS. I’m trying to connect a board with lambda but getting failed(Failed to communicate with URL provided.).
My code for the lambda on python is:
import json
def lambda_handler(event, context):
# Print the entire ‘event’ object for debugging with double quotes
print(“Received event:”, json.dumps(event, indent=2))
# Extract the challenge value from the webhook event data
challenge = event['challenge']
# Create a dictionary with the challenge message using the extracted challenge value
response_message = {
"challenge": challenge
}
# Print the response message with double quotes
print("Response message:", json.dumps(response_message, indent=2, ensure_ascii=False))
return {
'statusCode': 200,
'body': json.dumps(response_message, ensure_ascii=False)
}
test show me the result:
"
Test Event Name
challenge
Response
{
“statusCode”: 200,
“body”: “{"challenge": "3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P"}”
}
Function Logs
START RequestId: a5dd95bc-7a9a-4ba8-b2ea-57a48a1e2322 Version: $LATEST
Received event: {
“challenge”: “3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P”
}
Response message: {
“challenge”: “3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P”
}
"
Could you please help me understand what is the issue with integration with Monday.com.
Thank you in advance!
