May 28 2019 04:14 AM
I have developed a script in python using incoming webhooks that sends messages to Teams. I cannot control messages to teams as it depends on how many alerts our hosts are generating at one go. Recently, I have observed that my python script displays http response as 200 but there is no messages in my channel. After further investigation, I found that there is an http error 429 when sending messages via curl.
Curl Output: "Webhook message delivery failed with error: Microsoft Teams endpoint returned HTTP error 429"
Python Output: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): outlook.office.com:443
DEBUG:urllib3.connectionpool:https://outlook.office.com:443 "POST /webhook/1xxxxxxxxxxxxxxxxxxxxxxxx/IncomingWebhook/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 200 None
<Response [200]>
Is there a way to change the limit on teams? Becuase as said, I cannot control the incoming messsages as they are very important alerts. Also, why does python return 200 as http status where as curl is returning different error code?