I can report the same issue on our side. We set up the weebhooks in teams months ago with no issues. They started to present intermittent behavior on 11-10-2023.
We are using Python 3.11.5 and pymsteams 0.2.1.
Here our script to generate the message:
import pymsteams
ms_teams_webhook_url=<WebbhookUrl>
ms_teams_message=pymsteams.connectorcard(ms_teams_webhook_url)
ms_teams_message.text(message)
ms_teams_message.send()
The first error that we can report is this one:
Webhook message delivery failed with error: Microsoft Teams endpoint returned HTTP error 500 with ContextId tcid=0,server=msgapi-production-weu-08-0,cv=9By0aPSKMEC/06j+RzUy+Q.001=2..
Then, we have received the following error message on 13-10-2023 as reported in this issue:
Microsoft.Exchange.Security.TokenIssuer.Common.SubstrateTokenRequestException: ... is unauthorized, the public key <PUBLIC_KEY> is not found for ring WW, cannot validate signature"}. The response headers are: Date:Fri, 13 Oct 2023 12:30:44 GMT;Server:Microsoft-HTTPAPI/2.0.