Hello <@U088WCP3B4P>. I'm using the edr cmd to sen...
# ask-elementary-ai
a
Hello @kapa.ai. I'm using the edr cmd to send elementary report to Slack. Works great, it correctly shows a report in text. However, right after there's also an html file attached but i don't want it. How do i remove it ? This is my current cmd (with some private elements hidden) :
Copy code
edr send-report --env prod --profiles-dir . -t elementary-prod --gcs-bucket-name data-static-data-eu --bucket-file-path tables-elementary/ -ch "hidden" -st {{ hidden }}
k
A message from kapa.ai
You can disable the HTML attachment while still sending the Slack summary by adding the
--disable html_attachment
flag to your command. [[Send summary](https://docs.elementary-data.com/oss/guides/share-observability-report/send-report-summary)][[Disable attachment](https://elementary-community.slack.com/archives/C02CTC89LAX/p1681901376691479)] Your command would become:
Copy code
bash edr send-report \   --env prod \   --profiles-dir . \   -t elementary-prod \   --gcs-bucket-name data-static-data-eu \   --bucket-file-path tables-elementary/ \   -ch "hidden" \   -st {{ hidden }} \   --disable html_attachment
a
@kapa.ai Hmmm OK i see. Also one of the message on the links you sent says this : "Also generally, if the report
.html
file is uploaded to a bucket it's not sent on slack". I checked my GCS folder, and there's an index.html file already, so i'm confused as to why then it would send that html file to Slack.
k
A message from kapa.ai
You’re right to be confused — the behavior you’re seeing doesn’t fully match what’s described in that Slack thread. From the knowledge sources: - The intended behavior is: if the report is uploaded to S3/GCS and used as a hosted website, Elementary should send only the summary (with a URL) and not attach the HTML file. [[GCS hosting](https://elementary-community.slack.com/archives/C02CTC89LAX/p1678397037771019); [No attachment when hosted](https://elementary-community.slack.com/archives/C02CTC89LAX/p1681901376691479)] - However, there are multiple reports where users do get the HTML attachment even though the report is successfully uploaded to a bucket, and Elementary support treats this as a bug / inconsistent behavior. [[Bug discussion](https://elementary-community.slack.com/archives/C02CTC89LAX/p1686211101363219); [Another case](https://elementary-community.slack.com/archives/C02CTC89LAX/p1690806658100209)] So, based on the sources: 1. Having
index.html
in GCS does not guarantee
that Elementary will skip the Slack attachment in all versions / setups. There have been cases where: - Report uploads to GCS succeed, and - Slack still gets the HTML attachment. [[Bug discussion](https://elementary-community.slack.com/archives/C02CTC89LAX/p1686211101363219)] 2. The reliable, supported way to prevent the HTML file from being sent to Slack is exactly what you’re already trying:
--disable html_attachment
. [[Disable attachment](https://elementary-community.slack.com/archives/C02CTC89LAX/p1681901376691479)] The knowledge sources don’t provide a definitive rule that “if
index.html
exists in GCS, the attachment will never be sent”; instead, they show that this behavior has been inconsistent across versions and configurations, and that
--disable html_attachment
is the explicit control you should rely on.