Skip to content

TypeError: (intermediate value).difference is not a function in version 5.0.0 #35583

@ralessandro-mox

Description

@ralessandro-mox

Bug description

Hi,
I have an Apache Superset installation version 4.0.0 that works correctly.

I’m using the Docker image apache/superset:4.0.0 with a Postgres database, configured through a setup file and an initialization script that launches the command:

gunicorn --bind "0.0.0.0:$SUPERSET_PORT" "superset.app:create_app()"
--workers "$GUNICORN_WORKERS"
--threads "$GUNICORN_THREADS"
--timeout "$GUNICORN_TIMEOUT"
--max-requests "$GUNICORN_MAX_REQUESTS"
--preload

When I upgrade to version 5.0.0, using the image apache/superset:5.0.0, the application starts, applies the database migrations, and I can log in.

However, when I open some of the preloaded example dashboards, I get the following error:

TypeError: (intermediate value).difference is not a function at ka (http://localhost:8088/static/assets/3301108a09f8ea91dbb3.chunk.js:1195:162) at Pa (http://localhost:8088/static/assets/3301108a09f8ea91dbb3.chunk.js:1195:6713) at div at http://localhost:8088/static/assets/vendors.550cd2480f8c70dc73c1.entry.js:2:144917 at ko (http://localhost:8088/static/assets/3301108a09f8ea91dbb3.chunk.js:888:51) at div at div at http://localhost:8088/static/assets/vendors.550cd2480f8c70dc73c1.entry.js:2:144917 at ce (http://localhost:8088/static/assets/3301108a09f8ea91dbb3.chunk.js:199:51) at _ (http://localhost:8088/static/assets/3301108a09f8ea91dbb3.chunk.js:2:364292) at div at http://localhost:8088/static/assets/vendors.550cd2480f8c70dc73c1.entry.js:2:144917 at div at http://localhost:8088/static/assets/vendors.550cd2480f8c70dc73c1.entry.js:2:144917 at Pu (http://localhost:8088/static/assets/3301108a09f8ea91dbb3.chunk.js:2042:17) at Yu (http://localhost:8088/static/assets/3301108a09f8ea91dbb3.chunk.js:2297:54) at P (http://localhost:8088/static/assets/e2c4328768742c923137.chunk.js:1:2359) at g (http://localhost:8088/static/assets/vendors.550cd2480f8c70dc73c1.entry.js:2:1029958) at pe (http://localhost:8088/static/assets/e2c4328768742c923137.chunk.js:112:1708) at l (http://localhost:8088/static/assets/6862072183bc9069b522.chunk.js:1:218) at l (http://localhost:8088/static/assets/3652.a19e1c60fb7500d5478f.entry.js:1:67174) at http://localhost:8088/static/assets/

If I try to edit one of the database connections from the console, the form goes into a loop.

I tried looking online for suggestions but couldn’t find anything about this, and from the release notes it seems that version 5.0.0 is stable.

Can anyone tell me what I might be doing wrong or if they’ve experienced similar issues?

Thanks for your attention.
Best regards,
Alessandro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    change:frontendRequires changing the frontend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions