idealista / prom2teams

prom2teams is an HTTP server built with Python that receives alert notifications from a previously configured Prometheus Alertmanager instance and forwards it to Microsoft Teams using defined connectors
Apache License 2.0
274 stars 85 forks source link

[BUG] MicrosoftTeamsRequestException: Error performing request #330

Closed kevin-sedimentum closed 1 year ago

kevin-sedimentum commented 1 year ago

Description

Since yesterday, the prom2teams log has been filled with failed requests. Even though the message appears in the correct Microsoft Teams channel the services reports an error.

Microsoft Teams returns a valid response with status code 200:

2023-01-13 14:29:47,054 - prom2teams_app - ERROR - An unhandled exception occurred. Error performing request to: ...
 Returned status code: 200.
 Returned data: {"version":"1.1","content":{"headers":[{"key":"Content-Type","value":["text/plain; charset=utf-8"]}]},"statusCode":200,"reasonPhrase":"OK","headers":[],"trailingHeaders":[],"requestMessage":null,"isSuccessStatusCode":true}
 Sent message: { ... }

Any idea why this happens all of a sudden?

Steps to Reproduce

  1. Send a Prometheus request to the prom2teams service
  2. Check the logs of the prom2teams service

Expected behavior: The log consists of non-error messages.

Actual behavior: The log contains a lot of error messages.

Reproduces how often: Every time a message is sent to Microsoft Teams.

Environment

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.