-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
SlackAPIFileOperator is broken #14880
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
Following discussion on slack possibly it's an issue related to the correct setup of |
From what I understand of the API documentation (I don't use many API), the
Always passing the arguments as JSON payload. Maybe we should let the subclasses choose how to pass their arguments with something like:
We can keep some kind of retro-compatibility by providing a default implementation for the |
Will SlackAPIFileOperator accept |
I guess, If the documentation does not say it does, it does not. What the docs say @samshapley ? Did you check it ? |
Apache Airflow version: 2.0.1
Environment: Docker
uname -a
): 5.11.5-arch1-1What happened:
I tried to post a file from a long Python string to a Slack channel through the SlackAPIFileOperator.
I defined the operator this way:
Task failed with the following error:
What you expected to happen:
I expect the operator to succeed and see a new message in Slack with a snippet of a downloadable CSV file.
How to reproduce it:
Just declare a DAG this way:
And try to run it.
Anything else we need to know:
This seems to be a known issue: https://apache-airflow.slack.com/archives/CCQ7EGB1P/p1616079965083200
I workaround it with this following re-implementation:
Maybe it is not the best solution as it does not leverage work from
SlackAPIOperator
.But at least, it fullfill my use case.
The text was updated successfully, but these errors were encountered: