mpolatcan opened a new issue, #30287:
URL: https://github.com/apache/superset/issues/30287
### Bug description
When I visiting Home and Charts page, I can see thumbnails correctly, but
when I visit Dashboard page I can't see thumbnails. I configured S3 caching for
thumbnails like below in superset_config.py:
```python
def init_thumbnail_cache(app, config, cache_args, cache_options) -> S3Cache:
return S3Cache("superset-result-backend-cache", 'thumbnails/')
THUMBNAIL_CACHE_CONFIG = {'CACHE_TYPE':
'superset_config.init_thumbnail_cache'}
THUMBNAIL_SELENIUM_USER = get_env("THUMBNAIL_SELENIUM_USER", default="Admin")
THUMBNAIL_EXECUTE_AS = [ExecutorType.SELENIUM]
```
At the behind, I am seeing logs like below:
```
2024-09-16
14:45:23,017:WARNING:superset.common.utils.query_cache_manager:force_cached
(QueryContext): value not found for key 9e7535a0f4d4bd1307c7e630a3756c0e
2024-09-16 14:48:42,882:INFO:superset.utils.screenshots:Attempting to get
from cache: aa065c951be3dedba518d13eac81976d
2024-09-16 14:48:42,893:INFO:superset.utils.screenshots:Attempting to get
from cache: 318a398cd116f164114f22aca987c5e9
2024-09-16 14:48:43,262:INFO:superset.utils.screenshots:Attempting to get
from cache: 96feaa217625a1c02d3c42b62841287b
/home/superset/superset/venv/lib/python3.11/site-packages/_distutils_hack/__init__.py:31:
UserWarning: Setuptools is replacing distutils. Support for replacing an
already imported distutils is deprecated. In the future, this condition will
fail. Register concerns at
https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
2024-09-16 14:48:44,990:ERROR:superset.utils.json:JSON is not valid
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File
"/home/superset/superset/venv/lib/python3.11/site-packages/superset/utils/json.py",
line 244, in loads
return simplejson.loads(
^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/__init__.py",
line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/decoder.py",
line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/decoder.py",
line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2024-09-16 14:48:45,108:ERROR:superset.utils.json:JSON is not valid
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File
"/home/superset/superset/venv/lib/python3.11/site-packages/superset/utils/json.py",
line 244, in loads
return simplejson.loads(
^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/__init__.py",
line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/decoder.py",
line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/decoder.py",
line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2024-09-16 14:48:45,244:ERROR:superset.utils.json:JSON is not valid
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File
"/home/superset/superset/venv/lib/python3.11/site-packages/superset/utils/json.py",
line 244, in loads
return simplejson.loads(
^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/__init__.py",
line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/decoder.py",
line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File
"/home/superset/superset/venv/lib/python3.11/site-packages/simplejson/decoder.py",
line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
```
### How to reproduce the bug
1. Go to Dashboard page
2. Check thumbnails on page
### Screenshots/recordings


### Superset version
master / latest-dev
### Python version
3.11
### Node version
16
### Browser
Chrome
### Additional context
I am using Apache Superset 4.1.0rc2 version :)
### Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [X] 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]