davemulford opened a new issue #14504:
URL: https://github.com/apache/superset/issues/14504
Superset dashboard fails to load for an anonymous user (i.e. not logged in).
This error does not happen when logged in with the admin user.
### Expected results
The dashboard loads and displays the charts I've created.
### Actual results
The browser window reports an _"Unexpected Error"_ and looking in the
developer tools window, the console displays the following error:
```
TypeError: can't convert undefined to object
$<
http://plmdashboards.usersys.redhat.com/static/assets/dashboard.b03ba823dd0eabc8f3a0.entry.js:380
a
http://plmdashboards.usersys.redhat.com/static/assets/dashboard.b03ba823dd0eabc8f3a0.entry.js:55
ne
http://plmdashboards.usersys.redhat.com/static/assets/dashboard.b03ba823dd0eabc8f3a0.entry.js:380
r
http://plmdashboards.usersys.redhat.com/static/assets/dashboard.b03ba823dd0eabc8f3a0.entry.js:432
_p
http://plmdashboards.usersys.redhat.com/static/assets/dashboard.b03ba823dd0eabc8f3a0.entry.js:1754
...
```
#### Screenshots
Showing the error in browser (not very helpful):

Showing the error in the developer console:

#### How to reproduce the bug
1. Create a dashboard
2. Copy the dashboard URL to a private browser window, or a different
browser that is not logged into Superset.
### Environment
(please complete the following information):
- superset version: `Version: 0.999.0dev`
- python version: `Python 3.7.9`
- node.js version: `node -v`
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included
it here as text if there are 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.
### Additional context
I am using the `docker-compose-non-dev.yml` to run Superset. I have tried
various container images (`docker.io/apache/superset:latest` and
`docker.io/apache/superset:latest-dev`), as well as, switching to the latest
release tag of `v2021.15.0`.
I've added the `PUBLIC_ROLE_LIKE_GAMMA = True` to the
`./docker/pythonpath_dev/superset_config.py` file and added the datasource
permissions that are used in the dashboard.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]