Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edr monitor --teams-webhook giving error #1644

Open
JyotsnaMalode opened this issue Jul 22, 2024 · 8 comments
Open

edr monitor --teams-webhook giving error #1644

JyotsnaMalode opened this issue Jul 22, 2024 · 8 comments
Labels
Bug Something isn't working Triage 👀

Comments

@JyotsnaMalode
Copy link

JyotsnaMalode commented Jul 22, 2024

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):

  • Elementary CLI (edr) version: [e.g. 0.5.3], can be found by running pip show elementary-data
    Version: 0.15.1
  • Elementary dbt package version: [e.g. 0.4.1], can be found in packages.yml file
    version: 0.14.1
  • dbt version you're using [e.g. 1.8.1]
    1.7.10
  • Data warehouse [e.g. snowflake]
    Redshift
  • Infrastructure details (e.g. operating system, prod / dev / staging, deployment infra, CI system, etc)

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.

@JyotsnaMalode JyotsnaMalode added Bug Something isn't working Triage 👀 labels Jul 22, 2024
@dapollak
Copy link
Contributor

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

@JyotsnaMalode
Copy link
Author

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
Copy link

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
Copy link
Author

Thanks @mriveraFacephi , will try your suggestion.

@Jonathan-MW
Copy link

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
Copy link
Author

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

@FredRodrigues
Copy link

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage 👀
Projects
None yet
Development

No branches or pull requests

5 participants