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

   ### Bug description
   
   After configuring reports to schedule over email, its not working while it 
was worked on previous version . Please find the below error 
   
   uperset.commands.report.exceptions.ReportScheduleCsvFailedError: Failed 
generating csv HTTP Error 400: Bad Request
   [2026-01-13 13:21:01,703: INFO/ForkPoolWorker-4] Task 
reports.execute[8de9e661-388f-4cc3-8d85-303b57473c26] succeeded in 
0.2743292339146137s: None
   [2026-01-13 13:21:01,704: ERROR/ForkPoolWorker-4] Signal handler <function 
teardown at 0x7fc1fab85d80> raised: RuntimeError('Working outside of 
application context.\n\nThis typically means that you attempted to use 
functionality that needed\nthe current application. To solve this, set up an 
application context\nwith app.app_context(). See the documentation for more 
information.')
   Traceback (most recent call last):
     File 
"/data/supersetApp/supersetV6/venv/lib/python3.10/site-packages/celery/utils/dispatch/signal.py",
 line 280, in send
       response = receiver(signal=self, sender=sender, **named)
     File 
"/data/supersetApp/supersetV6/venv/lib/python3.10/site-packages/superset/tasks/celery_app.py",
 line 71, in teardown
       db.session.remove()
     File 
"/data/supersetApp/supersetV6/venv/lib/python3.10/site-packages/sqlalchemy/orm/scoping.py",
 line 180, in remove
       if self.registry.has():
     File 
"/data/supersetApp/supersetV6/venv/lib/python3.10/site-packages/sqlalchemy/util/_collections.py",
 line 1015, in has
       return self.scopefunc() in self.registry
     File 
"/data/supersetApp/supersetV6/venv/lib/python3.10/site-packages/flask_sqlalchemy/session.py",
 line 102, in _app_ctx_id
       return id(app_ctx._get_current_object())  # type: ignore[attr-defined]
     File 
"/data/supersetApp/supersetV6/venv/lib/python3.10/site-packages/werkzeug/local.py",
 line 519, in _get_current_object
       raise RuntimeError(unbound_message) from None
   RuntimeError: Working outside of application context.
   
   This typically means that you attempted to use functionality that needed
   the current application. To solve this, set up an application context
   with app.app_context(). See the documentation for more information.
   
   Sorry to say that , for every update getting errors and again finding and 
fixing ..
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] 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