Tuoyi Zhao
01/24/2025, 6:21 PMBianca Hoch
01/24/2025, 7:46 PMTuoyi Zhao
01/24/2025, 7:49 PMTuoyi Zhao
01/24/2025, 7:54 PMTuoyi Zhao
01/24/2025, 7:55 PMTuoyi Zhao
01/24/2025, 7:55 PMTuoyi Zhao
01/24/2025, 7:56 PMBianca Hoch
01/27/2025, 4:31 PM<https://yourteam.webhook.office.com/webhookb2/{token_a}/IncomingWebhook/{token_b}/{token_c}/{token_d}>
Also, when attempting to send a notification using the MS Teams block, do you see any errors show up in the Prefect event feed in the UI? Anything indicating that the notification couldn't be sent?Tuoyi Zhao
01/27/2025, 6:08 PMTuoyi Zhao
01/27/2025, 6:10 PMhttps://<address>:<port>/workflows/<token1>/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=<token2>
Tuoyi Zhao
01/27/2025, 6:11 PMTuoyi Zhao
01/27/2025, 7:33 PM/src/prefect/blocks
/notifications.py/CustomWebhookNotificationBlock
I think the issue is the request_arg made in request_args = self._build_request_args(body, subject)
are mostly not valid to be used in await client.request(**request_args)
resulting only the method and URL those two arguments valid in the request while left the rest of the content not legit.Tuoyi Zhao
01/27/2025, 8:20 PMTuoyi Zhao
01/28/2025, 1:30 AMtt = CustomWebhookNotificationBlock(method='POST', url='<https://test.tst.ts>', name='test')
then`tt._build_request_args(body='Hi', subject='World')` the body and subject will not be appear in the argument returnedTuoyi Zhao
01/28/2025, 1:40 AMBianca Hoch
01/28/2025, 5:17 PM