DEV Community

Discussion on: AWS Lambda: Send a Message with Discord Webhooks

Collapse
 
francoisfitz profile image
FITZ PATRICK

Great tutorial @josuebustos, very clear and thorough !
I had a bug though making the test work, it said cannot import discord_webhook. To solve it I moved all the libraries created in my-project folder to a subfolder my-project/python/. See Amazon answer.
Hope it helps someone!

Collapse
 
moulip90 profile image
MouliP90 • Edited

hi @francoisfitz , when I test sending discord message, it works first time and then I have to wait for 5 minutes to send another message to discord channel. Although the test execution says status code 200 but discord notification isn't getting sent for 5 minutes once a message is sent to discord channel. did you encounter this issue as well?

Collapse
 
francoisfitz profile image
FITZ PATRICK

Hi @moulip90 , there might have been some delay in sending notifications but I don't remember it was that long. Then again i'm not concerned by delay so I might have overlooked that. Hope you'll find a fix

Thread Thread
 
moulip90 profile image
MouliP90

The issue is not even about delay, messages aren't getting sent from 2nd file upload, for 5-6 minutes, after the first file is uploaded(when first file is uploaded to S3, a message is posted in discord channel).