elementary-data / elementary

The dbt-native data observability solution for data & analytics engineers. Monitor your data pipelines in minutes. Available as self-hosted or cloud service with premium features.
https://www.elementary-data.com/
Apache License 2.0
1.87k stars 158 forks source link

edr monitor --teams-webhook giving error #1644

Open JyotsnaMalode opened 1 month ago

JyotsnaMalode commented 1 month ago

Describe the bug When I execute below command: edr monitor --teams-webhook giving error

Getting below error in Power Automate workflow Oops, we failed to format the alert ! -_-' Please share this with the Elementary team via https://elementary-data.com/community or a https://github.com/elementary-data/elementary/issues/new|GitHub issue."

To Reproduce Steps to reproduce the behavior:

  1. Run dbt tests
  2. Execute command "edr monitor --teams-webhook "
  3. Getting error as below, even though i have ?api-version=2016-06-01& in webhook url image

Also getting below error in PowerAutomate image

Expected behavior I was expecting to see alerts in Teams channel

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Would you be willing to contribute a fix for this issue? Let us know if you're willing to contribute so that we'll be able to provide guidance.

dapollak commented 1 month ago

Hey @JyotsnaMalode, How do you pass the webhook url to the CLI ?

JyotsnaMalode commented 1 month ago

hi @dapollak , I am using below command edr monitor --teams-webhook "url"

I am using Teams workflow and not Teams webhook as it will soon be not supported

When I check the raw output for "When a Teams webhook request is received" in Wrokflow, I get below data "title": "Oops, we failed to format the alert ! --' Please share this with the Elementary team via https://elementary-data.com/community or a https://github.com/elementary-data/elementary/issues/new|GitHub issue.",_

mriveraFacephi commented 1 month ago

Hi, same error here. pymsteams appears not to have a solution yet.

A workaround could be sent alerts in plain text and allowing ok status code between 200 <= x < 300. Not the best solution but at least it allows to continue receive alerts.

JyotsnaMalode commented 1 month ago

Thanks @mriveraFacephi , will try your suggestion.

Jonathan-MW commented 1 month ago

I also tried to setup MS Teams alerts with the new Power Automate workflow method, because the connector already does not work anymore for us. Getting this error: "ERROR — Unable to send alert via Teams: 'Response' object has no attribute 'body'"

image

JyotsnaMalode commented 1 month ago

Update - workaround suggested by @mriveraFacephi worked for me to receive the text message.

FredRodrigues commented 3 weeks ago

Hey @Jonathan-MW , I am having the same issue. Did you try the solution provided by @mriveraFacephi ?

I tried but does not seem to work :/

FredRodrigues commented 1 week ago

In short, we will need for an update from pymsteams in order to solve this issue or is there any other option we can use to solve this problem?