question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[error]actionable error msg for broken deck.gl chart

See original GitHub issue

Hexagons demo chart shows error after loading samples:

Screen Shot 2020-11-19 at 3 25 23 PM Screen Shot 2020-11-19 at 3 26 24 PM

POST to explore_json fails with error:

POST https://my.host.here/superset/explore_json/?form_data=%7B%22slice_id%22%3A77%7D&dashboard_id=5 500 (INTERNAL SERVER ERROR)

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/superset/views/base.py", line 177, in wraps
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/superset/utils/cache.py", line 108, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/superset/views/core.py", line 534, in explore_json
    return self.generate_json(viz_obj, response_type)
  File "/usr/local/lib/python3.7/site-packages/superset/views/core.py", line 430, in generate_json
    payload = viz_obj.get_payload()
  File "/usr/local/lib/python3.7/site-packages/superset/viz.py", line 480, in get_payload
    payload = self.get_df_payload(query_obj)
  File "/usr/local/lib/python3.7/site-packages/superset/viz.py", line 512, in get_df_payload
    query_obj = self.query_obj()
  File "/usr/local/lib/python3.7/site-packages/superset/viz.py", line 2375, in query_obj
    self.add_null_filters()
  File "/usr/local/lib/python3.7/site-packages/superset/viz.py", line 2356, in add_null_filters
    for column in self.get_spatial_columns(key):
  File "/usr/local/lib/python3.7/site-packages/superset/viz.py", line 2291, in get_spatial_columns
    raise ValueError(_("Bad spatial key"))
ValueError: Bad spatial key

Expected results

Hexagons should load properly

what you expected to happen.

How to reproduce the bug

  1. Load examples from scratch
  2. Navigate to deck.gl dashboard

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
junlincccommented, Nov 19, 2020

Bad spatial key map layer problem? man i dont know what to do with all these broken charts 😂 im also not sure how many people are still using this chart

0reactions
andrewscaranicommented, Apr 18, 2022

Bump! This is still a useful bug fix to have. Please pin!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[error]actionable error msg for broken deck.gl chart #11758
Hexagons demo chart shows error after loading samples: POST to explore_json ... [error]actionable error msg for broken deck.gl chart #11758.
Read more >
Layer Class - deck.gl
This static property should contain the name of the layer, typically the name of layer's class (it cannot reliably be autodeduced in minified...
Read more >
Upgrade Guide - deck.gl
Upgrade Guide. Upgrading from deck.gl v8.7 to v8.8. Breaking changes. In order to generalize the TileLayer to work with non-OSM indexing systems, ...
Read more >
Adding Interactivity - deck.gl
Adding Interactivity. Controlling the Camera. Out of the box, deck.gl offers viewport controllers that map keyboard, mouse or touch input to camera state ......
Read more >
Loading Data - deck.gl
If the layer is used in an environment that does not support web workers, or you need to debug the loader code on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found