-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Labels
Feature:Reporting:FrameworkReporting issues pertaining to the overall frameworkReporting issues pertaining to the overall frameworkchoreneeds-teamIssues missing a team labelIssues missing a team label
Description
This error currently causes an unhandled promise rejection, which crashes Kibana when running in dev mode. This should be addressed so that the error is caught and handled correctly:
kibana/x-pack/plugins/reporting/server/browsers/chromium/driver/chromium_driver.ts
Line 229 in 6c62c68
| throw new Error( |
Steps to reproduce:
- Constrain the network policy. Here is an example policy which restricts access to
via.placeholder.com:
xpack.reporting.capture.networkPolicy.rules: [
{ allow: true, protocol: 'http:' },
{ allow: false, host: via.placeholder.com },
{ allow: true, protocol: 'https:' },
{ allow: false },
]- Create a Canvas workpad (this is just easy to embed an image), which embeds an image to
via.placeholder.com:
image
dataurl="https://via.placeholder.com/728x90.png?text=test+external+image" mode="contain"
| render
The report will correctly fail, due to the network policy violation. However, when running in dev mode, this causes the Kibana server to crash, because the error thrown by the code above is not handled by the calling code.
I would expect this error to be caught and logged, rather than being uncaught and relying on the Kibana runtime to handle this.
Metadata
Metadata
Assignees
Labels
Feature:Reporting:FrameworkReporting issues pertaining to the overall frameworkReporting issues pertaining to the overall frameworkchoreneeds-teamIssues missing a team labelIssues missing a team label
