Comments (3)
I'm receiving the same error.
I'm cloning the repo.
I'm adding to the default my superset_config.py:
TALISMAN_ENABLED = False
ENABLE_CORS = True
HTTP_HEADERS={"X-Frame-Options":"ALLOWALL"}
SESSION_COOKIE_SAMESITE = None
ENABLE_PROXY_FIX = True
PUBLIC_ROLE_LIKE_GAMMA = True
FEATURE_FLAGS = {
"EMBEDDED_SUPERSET": True
}
CORS_OPTIONS = {
'supports_credentials': True,
'allow_headers': ['*'],
'resources':['*'],
'origins': ['*']
}
I'm running sudo docker-compose -f docker-compose-non-dev.yml up -d
From postman requesting: http://domain/api/v1/security/login
This is the payload:
{
"password": "admin",
"provider": "db",
"refresh": true,
"username": "admin"
}
This is the response:
{
"message": "Fatal error"
}
When looking at the logs:
2024-04-10 14:58:51,257:ERROR:flask_appbuilder.api:'SupersetApp' object has no attribute 'json_encoder'
superset_app | Traceback (most recent call last):
superset_app | File "/usr/local/lib/python3.10/site-packages/flask_appbuilder/api/__init__.py", line 110, in wraps
superset_app | return f(self, *args, **kwargs)
superset_app | File "/usr/local/lib/python3.10/site-packages/flask_appbuilder/security/api.py", line 107, in login
superset_app | resp[API_SECURITY_ACCESS_TOKEN_KEY] = create_access_token(
superset_app | File "/usr/local/lib/python3.10/site-packages/flask_jwt_extended/utils.py", line 169, in create_access_token
superset_app | return jwt_manager._encode_jwt_from_config(
superset_app | File "/usr/local/lib/python3.10/site-packages/flask_jwt_extended/jwt_manager.py", line 506, in _encode_jwt_from_config
superset_app | json_encoder=config.json_encoder,
superset_app | File "/usr/local/lib/python3.10/site-packages/flask_jwt_extended/config.py", line 276, in json_encoder
superset_app | return current_app.json_encoder
superset_app | AttributeError: 'SupersetApp' object has no attribute 'json_encoder'
superset_app | 76.88.39.186 - - [10/Apr/2024:14:58:51 +0000] "POST /api/v1/security/login HTTP/1.1" 500 31 "-" "PostmanRuntime/7.36.0"
from superset.
I am having the same issue login from API if runing just docker compose up
. However when I run something like
export TAG=4.0.0
docker compose -f docker-compose-image-tag.yml up
then I don't have any issues.
from superset.
any updates? I have the same error.
from superset.
Related Issues (20)
- Unable to install superset using helm and kubernetes
- Database Creation Error while editing Google Sheets Database
- Hovering Over % Values Calculated in Custom SQL Metrics is showing the row value- 16.25 is shown as .1625 instead if 16.25
- Not able to disable edit chart option and clickable title option In Iframe HOT 5
- Query history page is not usable in 3.1.2 and 4.0.0, caused by bug in sql_parse.py HOT 8
- Unable to upload csv to database HOT 1
- Cannot sort series by value in Pivot Tables when using metrics as rows
- Unable to save report due to Add button not enable
- NPM missing peer-dependencies HOT 2
- Couldn't get dashboards from API
- Compatibility Issues with Aliyun MaxCompute after Upgrading Superset to 4.0
- Overview video about `Superset` should be embed in Intro documentation
- when building docker image, Hash mismatch error
- "Variable is not set" error while trying to run "docker compose pull" HOT 4
- [SIP-128] AI/LLM query generation in SQL lab HOT 12
- Unable to hide header while embedding dashboards HOT 3
- Referencing a Decimal in Percentage Metrics causes division by zero error (table charts)
- I have embedded a superset dashboard in my system, but I don't want users to see the "edit chart", "view SQL" buttons. What should I do? What role permissions need to be modified? HOT 11
- Echarts native support for accessibility HOT 3
- Filter Input Regression
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.