Skip to content

Superset slice API with standalone to true error #12176

@dpgaspar

Description

@dpgaspar

On thumbnails and alerts/reports screenshot use the following link:

<server>/superset/slice/<slice_id>/?standalone=true

But the link does not render a chart, with the following error:

Screenshot 2020-12-22 at 14 07 07

stands out to me:

Uncaught Error: Target container is not a DOM element.

When using <server>/superset/slice/<slice_id>/ (without the standalone option) the chart renders has expected in a explore view

Expected results

The chart is rendered in standalone and a screenshot can be taken by selenium

Actual results

No chart is rendered and selenium errors out

How to reproduce the bug

  1. Go to: <server>/superset/slice/<slice_id>/?standalone=true, eg: http://localhost:9000/superset/slice/323/?standalone=true
  2. See error

Environment

  • superset version: using master sha: 8d5dcc5, and latest
  • python version: 3.7.6
  • node.js version: v12.18.3

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions