superset icon indicating copy to clipboard operation
superset copied to clipboard

Uncaught TypeError: Cannot read property 'map' of null

Open qiadelaide opened this issue 8 years ago • 11 comments

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

  • [√] I have checked the superset logs for python stacktraces and included it here as text if 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

Superset version

0.23.2

Expected results

When I open the dashboard I created, I can see it.

Actual results

I can see nothing, but: dashboard.b21ed8e6fe6a55e3a492.entry.js:326 Uncaught TypeError: Cannot read property 'map' of null at b (dashboard.b21ed8e6fe6a55e3a492.entry.js:326) at Object. (dashboard.b21ed8e6fe6a55e3a492.entry.js:305) at n (dashboard.b21ed8e6fe6a55e3a492.entry.js:1) at Object. (dashboard.b21ed8e6fe6a55e3a492.entry.js:305) at n (dashboard.b21ed8e6fe6a55e3a492.entry.js:1) at dashboard.b21ed8e6fe6a55e3a492.entry.js:1 at dashboard.b21ed8e6fe6a55e3a492.entry.js:1 b @ dashboard.b21ed8e6fe6a55e3a492.entry.js:326 (anonymous) @ dashboard.b21ed8e6fe6a55e3a492.entry.js:305 n @ dashboard.b21ed8e6fe6a55e3a492.entry.js:1 (anonymous) @ dashboard.b21ed8e6fe6a55e3a492.entry.js:305 n @ dashboard.b21ed8e6fe6a55e3a492.entry.js:1 (anonymous) @ dashboard.b21ed8e6fe6a55e3a492.entry.js:1 (anonymous) @ dashboard.b21ed8e6fe6a55e3a492.entry.js:1

Steps to reproduce

1、Click the dashboards. 2、Choose my dashboard.

qiadelaide avatar Mar 14 '18 07:03 qiadelaide

Please add all the missing information from the issue template

xrmx avatar Mar 14 '18 08:03 xrmx

Having the same issue, curious how did you fix it ?

amishyn avatar Mar 23 '18 16:03 amishyn

same issue, please suggest solution. @wangqi19940304 @xrmx

pranavoyo avatar Apr 04 '18 09:04 pranavoyo

What worked out for me, is to add custom config file superset_config.py with UPLOAD_FOLDER='/tmp/'

amishyn avatar Apr 04 '18 09:04 amishyn

doesn't work for me, dashboard.b21ed8e6fe6a55e3a492.entry.js:326 Uncaught TypeError: Cannot read property 'map' of null at b (dashboard.b21ed8e6fe6a55e3a492.entry.js:326) at Object. (dashboard.b21ed8e6fe6a55e3a492.entry.js:305) at n (dashboard.b21ed8e6fe6a55e3a492.entry.js:1) at Object. (dashboard.b21ed8e6fe6a55e3a492.entry.js:305) at n (dashboard.b21ed8e6fe6a55e3a492.entry.js:1) at dashboard.b21ed8e6fe6a55e3a492.entry.js:1 at dashboard.b21ed8e6fe6a55e3a492.entry.js:1

pranavoyo avatar Apr 04 '18 09:04 pranavoyo

Oh, I'm sorry, suggested fix for the another issue of uploading csv.

For this one, I've added '[]' as a value for 'Position JSON'

amishyn avatar Apr 04 '18 10:04 amishyn

sorry to sound dumb, but where do i set this value for 'Position JSON'? for now, i upgraded superset and now everything is working fine.

pranavoyo avatar Apr 04 '18 10:04 pranavoyo

On the Edit Dashboard page

amishyn avatar Apr 04 '18 10:04 amishyn

If you've seen this > 0.24.0 let me know and I'll reopen

mistercrunch avatar Apr 04 '18 16:04 mistercrunch

It came back with 0.28.1, issue is there : https://github.com/apache/incubator-superset/issues/6165

Jemteddy avatar Oct 26 '18 15:10 Jemteddy

Actually @Jemteddy that error message is pretty generic, can you open another issue providing more details?

mistercrunch avatar Oct 26 '18 15:10 mistercrunch