superset icon indicating copy to clipboard operation
superset copied to clipboard

Dashboard date filter "TypeError: Cannot read property 'map' of undefined"

Open DaimonPl opened this issue 9 years ago • 13 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [ x ] I have checked the superset logs for python stacktraces and included it here as text if any
  • [ x ] I have reproduced the issue with at least the latest released version of superset
  • [ x ] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.20.3

Expected results

Dashboard date filter should work

Actual results

Error occurs on filter slice:

An error occurred while rendering the visualization: TypeError: Cannot read property 'map' of undefined

Steps to reproduce

  1. Create dashboard
  2. Add filter to dashboard
  3. Apply date filtering
  4. Refresh dashboard

DaimonPl avatar Oct 11 '17 09:10 DaimonPl

Am pretty sure you haven't posted the full stacktrace from your server logs

xrmx avatar Oct 11 '17 10:10 xrmx

I did not see anything in server logs (stdout from superset process). I used tail -f during dashboard testing and that error was not visible there

DaimonPl avatar Oct 11 '17 10:10 DaimonPl

Ah! sorry, that's a js error :)

xrmx avatar Oct 11 '17 11:10 xrmx

Yeah,

I managed to get log in console but it looks like minified code so probably not useful anyway

Uncaught TypeError: Cannot read property 'map' of undefined at t.e (dashboard.5181d5d45936098fa409.entry.js:135) at f._renderValidatedComponentWithoutOwnerOrContext (dashboard.5181d5d45936098fa409.entry.js:61) at f._renderValidatedComponent (dashboard.5181d5d45936098fa409.entry.js:61) at f._updateRenderedComponent (dashboard.5181d5d45936098fa409.entry.js:61) at f._performComponentUpdate (dashboard.5181d5d45936098fa409.entry.js:61) at f.updateComponent (dashboard.5181d5d45936098fa409.entry.js:61) at f.performUpdateIfNecessary (dashboard.5181d5d45936098fa409.entry.js:61) at Object.performUpdateIfNecessary (dashboard.5181d5d45936098fa409.entry.js:29) at k (dashboard.5181d5d45936098fa409.entry.js:29) at m.perform (dashboard.5181d5d45936098fa409.entry.js:34)

DaimonPl avatar Oct 11 '17 11:10 DaimonPl

And image as well

filter_error

DaimonPl avatar Oct 11 '17 11:10 DaimonPl

Not sure if it matters but we've got cache enabled for that datasource

DaimonPl avatar Oct 11 '17 11:10 DaimonPl

This is the reason behind https://github.com/apache/incubator-superset/issues/3650 which was fixed in https://github.com/apache/incubator-superset/commit/912c6f623159be69007cc9ee38b10e8adc7778ce

Mogball avatar Oct 12 '17 01:10 Mogball

So when can we expect 0.20.4 with this fix? :)

DaimonPl avatar Oct 12 '17 04:10 DaimonPl

I am experiencing this again in the 0.28.1 version when I applied date filter. Any fix?

famasya avatar Oct 23 '18 03:10 famasya

Same here, we are seeing this error in javascript on 0.28.1

nuria avatar Dec 13 '18 19:12 nuria

Getting this error while trying to use mapbox in superset An error occurred while rendering the visualization: TypeError: e.filter is not a function

garima301984 avatar Jul 22 '19 15:07 garima301984

@nuria I can see this error is fixed on in 0.29.0rc7 version, I was facing the same issue I upgraded to 0.29.0rc7 version and I can see this is resolved for me.

Reference, https://www.aimks.com/superset-filter-box-error-cannot-read-property-map-of-undefined-solution.html

sudeshmu avatar Aug 12 '19 11:08 sudeshmu

@sudeshmu I am also facing same issue. I am trying to upgrade superset 0.28.1 to latest version by running command "pip install superset --upgrade" but it is not upgrading to latest version. It is saying "requirement already satisfied".

hemantaggarwal avatar Aug 16 '19 11:08 hemantaggarwal