You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/09/24 16:39:21 UTC

[GitHub] [incubator-superset] ngritsuk opened a new issue #8286: Schedule Email Reports for Charts works incorrect

ngritsuk opened a new issue #8286: Schedule Email Reports for Charts works incorrect
URL: https://github.com/apache/incubator-superset/issues/8286
 
 
   When I try to send test email for chart with **Raw data** email format and **Attachment** delivery type, select checkbox Send Test Email and input email address into  Test Email Recipients, I get **Schedule changes will get applied in one hour**  message and following trace 
   
   ```
   2019-09-24 15:51:01,893:INFO:werkzeug:172.19.0.2 - - [24/Sep/2019 15:51:01] "GET /superset/explore_json/?csv=true&form_data=%7B%22slice_id%22%3A+27%7D HTTP/1.1" 200 -
   [2019-09-24 15:51:01,895: ERROR/MainProcess] Task email_reports.send[1f0a1575-68d6-46ba-9ef1-2552b56468f0] raised unexpected: TypeError('expected bytes-like object, not NoneType',)
   Traceback (most recent call last):
     File "/usr/local/lib/python3.6/base64.py", line 510, in _input_type_check
       m = memoryview(s)
   TypeError: memoryview: a bytes-like object is required, not 'NoneType'
   
   The above exception was the direct cause of the following exception:
   
   Traceback (most recent call last):
     File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
       R = retval = fun(*args, **kwargs)
     File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 648, in __protected_call__
       return self.run(*args, **kwargs)
     File "/home/superset/superset/tasks/schedules.py", line 367, in schedule_email_report
       deliver_slice(schedule)
     File "/home/superset/superset/tasks/schedules.py", line 346, in deliver_slice
       _deliver_email(schedule, subject, email)
     File "/home/superset/superset/tasks/schedules.py", line 84, in _deliver_email
       dryrun=config.get("SCHEDULED_EMAIL_DEBUG_MODE"),
     File "/home/superset/superset/utils/core.py", line 722, in send_email_smtp
       body, Content_Disposition="attachment; filename='%s'" % name, Name=name
     File "/usr/local/lib/python3.6/email/mime/application.py", line 37, in __init__
       _encoder(self)
     File "/usr/local/lib/python3.6/email/encoders.py", line 32, in encode_base64
       encdata = str(_bencode(orig), 'ascii')
     File "/usr/local/lib/python3.6/base64.py", line 527, in encodebytes
       _input_type_check(s)
     File "/usr/local/lib/python3.6/base64.py", line 513, in _input_type_check
       raise TypeError(msg) from err
   TypeError: expected bytes-like object, not NoneType
   127.0.0.1 - - [24/Sep/2019 15:51:03] "GET /health HTTP/1.1" 200 -
   2019-09-24 15:51:03,620:INFO:werkzeug:127.0.0.1 - - [24/Sep/2019 15:51:03] "GET /health HTTP/1.1" 200 -
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org