zhaorui2022 opened a new issue, #20262: URL: https://github.com/apache/superset/issues/20262
In [this line](https://github.com/apache/superset/blob/4f77824e550bc70d2f6365221b9078004d49b78c/superset/utils/csv.py#L83), it is trying to access `response` before it is initialized if `auth_cookies` is false. Will send a PR after creating this issue. #### How to reproduce the bug 1. Run with an unauthorized user name to create an alert. When the alerts fails and tries to send a notification, it fails with error message `Failed generating csv local variable 'response' referenced before assignment`. ### Expected results If running with unauthorized user name, it should just fails to retrieve data. ### Actual results It fails with error message `Failed generating csv local variable 'response' referenced before assignment` #### Screenshots N/A ### Environment (please complete the following information): - browser type and version: It is a backend error and is happening to all browsers - superset version: `superset version` latest - python version: `python --version` 3.9 - node.js version: `node -v` N/A - any feature flags active: N/A ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Add any other context about the problem here. -- 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]
