mosescha1972 opened a new issue, #38420:
URL: https://github.com/apache/superset/issues/38420
### Bug description
Environment
Platform: Apache Superset (master branch, Dec 25 build)
Notification target: Mattermost (Incoming Webhook)
Report type: Dashboard
Notification format tested: PNG and PDF
Execution via Celery worker
Summary
When sending scheduled dashboard reports (PNG or PDF) to a Mattermost
Incoming Webhook, the notification fails with:
HTTP 413 – Request body too large
HTTP 400 – Failed to decode multipart/form-data
Intermittent [Errno 101] Network is unreachable from the worker container
The task itself is marked as succeeded, but the notification delivery fails.
Error Details
1. 413 – Request Body Too Large
Webhook failed with status code 413:
{"id":"api.context.request_body_too_large.app_error",
"message":"Unable to process request. Request body too large."}
Observed when sending PNG or PDF report output.
2. 400 – multipart/form-data decode failure
Webhook failed with status code 400:
{"id":"web.incoming_webhook.decode.app_error",
"message":"Failed to decode the payload of media type multipart/form-data"}
This occurs when sending a PDF report.
The request appears to be sent as multipart/form-data.
Mattermost Incoming Webhooks expect application/json, not multipart file
uploads.
3. Network unreachable (from worker)
SupersetError: [Errno 101] Network is unreachable
Occurs in the Celery worker during webhook notification attempts.
Observed Behavior
Screenshot capture completes successfully.
PDF generation completes.
Webhook attempt is made.
Mattermost returns 413 or 400.
Superset raises ReportScheduleClientErrorsException.
Task is logged as succeeded despite notification failure.
### 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]