PuszekSE opened a new issue, #29480:
URL: https://github.com/apache/superset/issues/29480

   ### Bug description
   
   When attempting to send the notification it seems to be failing due to Slack 
API deprecation:
   
   ```
   [2024-07-03 04:13:16,531: WARNING/ForkPoolWorker-16] 
SupersetError(message="The request to the Slack API failed. (url: 
https://www.slack.com/api/files.upload)\nThe server responded with: {'ok': 
False, 'error': 'method_deprecated'}", 
error_type=<SupersetErrorType.REPORT_NOTIFICATION_ERROR: 
'REPORT_NOTIFICATION_ERROR'>, level=<ErrorLevel.WARNING: 'warning'>, extra=None)
   header_data in notifications for alerts and reports {'notification_type': 
'Alert', 'notification_source': <ReportSourceFormat.DASHBOARD: 'dashboard'>, 
'notification_format': 'PNG', 'chart_id': None, 'dashboard_id': 1, 'owners': 
[...]}, taskid, 52c32a04-bce5-45a9-9add-511c252908fa
   
   [2024-07-03 04:13:16,579: INFO/ForkPoolWorker-16] header_data in 
notifications for alerts and reports {'notification_type': 'Alert', 
'notification_source': <ReportSourceFormat.DASHBOARD: 'dashboard'>, 
'notification_format': 'PNG', 'chart_id': None, 'dashboard_id': 1, 'owners': 
[...]}, taskid, 52c32a04-bce5-45a9-9add-511c252908fa
   SupersetError(message='[Errno 111] Connection refused', 
error_type=<SupersetErrorType.REPORT_NOTIFICATION_ERROR: 
'REPORT_NOTIFICATION_ERROR'>, level=<ErrorLevel.ERROR: 'error'>, extra=None)
   
   [2024-07-03 04:13:16,581: WARNING/ForkPoolWorker-16] 
SupersetError(message='[Errno 111] Connection refused', 
error_type=<SupersetErrorType.REPORT_NOTIFICATION_ERROR: 
'REPORT_NOTIFICATION_ERROR'>, level=<ErrorLevel.ERROR: 'error'>, extra=None)
   A downstream warning occurred while generating a report: 
52c32a04-bce5-45a9-9add-511c252908fa. [SupersetError(message="The request to 
the Slack API failed. (url: https://www.slack.com/api/files.upload)\nThe server 
responded with: {'ok': False, 'error': 'method_deprecated'}", 
error_type=<SupersetErrorType.REPORT_NOTIFICATION_ERROR: 
'REPORT_NOTIFICATION_ERROR'>, level=<ErrorLevel.WARNING: 'warning'>, 
extra=None)]
   Traceback (most recent call last):
     File "/app/superset/tasks/scheduler.py", line 90, in execute
       AsyncExecuteReportScheduleCommand(
     File "/app/superset/commands/report/execute.py", line 721, in run
       raise ex
     File "/app/superset/commands/report/execute.py", line 717, in run
       ReportScheduleStateMachine(
     File "/app/superset/commands/report/execute.py", line 678, in run
       state_cls(
     File "/app/superset/commands/report/execute.py", line 582, in next
       raise first_ex
     File "/app/superset/commands/report/execute.py", line 551, in next
       self.send()
     File "/app/superset/commands/report/execute.py", line 451, in send
       self._send(notification_content, self._report_schedule.recipients)
     File "/app/superset/commands/report/execute.py", line 442, in _send
       raise ReportScheduleClientErrorsException(errors=notification_errors)
   superset.commands.report.exceptions.ReportScheduleClientErrorsException: 
[SupersetError(message="The request to the Slack API failed. (url: 
https://www.slack.com/api/files.upload)\nThe server responded with: {'ok': 
False, 'error': 'method_deprecated'}", 
error_type=<SupersetErrorType.REPORT_NOTIFICATION_ERROR: 
'REPORT_NOTIFICATION_ERROR'>, level=<ErrorLevel.WARNING: 'warning'>, 
extra=None)]
   ```
   
   ### How to reproduce the bug
   
   1. Setup notification via Slack using SLACK_TOKEN_API
   2. Send dashboard as a notification to the channel
   
   
   ### Screenshots/recordings
   
   <img width="466" alt="image" 
src="https://github.com/apache/superset/assets/4567127/1e7a1e4e-43d7-42f1-8b29-50a81340ab37";>
   
   <img width="461" alt="image" 
src="https://github.com/apache/superset/assets/4567127/358a7620-7975-4ad6-823f-332f77a7ebfc";>
   
   <img width="255" alt="image" 
src="https://github.com/apache/superset/assets/4567127/eb10f2e2-cd92-426e-8111-dac00ddf6916";>
   
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   Not applicable
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Not applicable
   
   ### Additional context
   
   It's k8s based deployment based on 4.0.2rc-dev image if that matters anyhow.
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [X] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to