You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "keenborder786 (via GitHub)" <gi...@apache.org> on 2023/07/25 14:41:01 UTC
[GitHub] [superset] keenborder786 opened a new issue, #24800: Superset REST API Bug with latest Helm Chart Deployment
keenborder786 opened a new issue, #24800:
URL: https://github.com/apache/superset/issues/24800
#### How to reproduce the bug
I am using the latest helm chart release to install the superset on my local machine. However, when I forward a GET request to the following endpoint: http://localhost:8088/api/v1/database/_info. I am getting the following error:
```
{error:"'encrypted_extra'"}
```
### Expected results
I tried other _info endpoints as well e.g http://localhost:8088/api/v1/dataset/_info and it works fine returning me the info about the CRUD model and security
### Environment
- browser type and version: FireFox 115.0.2 (64-bit)
- superset version: 2.1.0
- python version: 3.9.1.5
- node.js version: v12.22.9
- superset-helm-chart version: 0.10.5
### Additional context
Kubernetes Version:
```json
{
"clientVersion": {
"major": "1",
"minor": "25",
"gitVersion": "v1.25.0",
"gitCommit": "a866cbe2e5bbaa01cfd5e969aa3e033f3282a8a2",
"gitTreeState": "clean",
"buildDate": "2022-08-23T17:44:59Z",
"goVersion": "go1.19",
"compiler": "gc",
"platform": "linux/amd64"
},
"kustomizeVersion": "v4.5.7",
"serverVersion": {
"major": "1",
"minor": "25",
"gitVersion": "v1.25.3",
"gitCommit": "434bfd82814af038ad94d62ebe59b133fcb50506",
"gitTreeState": "clean",
"buildDate": "2022-10-12T10:49:09Z",
"goVersion": "go1.19.2",
"compiler": "gc",
"platform": "linux/amd64"
}
}
```
helm version: v3.11.3
--
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-3942638082
Closing this issue as PR #32339 (merged Feb 2025) addressed encrypted_extra schema handling, which appears to be the root cause of this bug.
If you're still experiencing this issue on Superset 5.x or 6.x, please open a new issue with reproduction steps and we'll investigate further.
Thanks for the report!
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "rad-pat (via GitHub)" <gi...@apache.org>.
rad-pat commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-2681493127
I just experienced this on 5.0.0RC1 using the swagger UI
Relevant Traceback:
```
2025-02-25 10:24:52,224:ERROR:superset.views.error_handling:'encrypted_extra'
Traceback (most recent call last):
File "/app/superset/views/error_handling.py", line 101, in wraps
return f(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/views/base_api.py", line 459, in info_headless
duration, response = time_function(super().info_headless, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/superset/utils/core.py", line 1363, in time_function
response = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 1380, in info_headless
self.set_response_key_mappings(payload, self.info, rison_args, **rison_args)
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 753, in set_response_key_mappings
v(self, response, **kwargs)
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 1273, in merge_add_field_info
response[API_ADD_COLUMNS_RES_KEY] = self._get_fields_info(
^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/api/__init__.py", line 2045, in _get_fields_info
model_schema.fields[col],
~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: 'encrypted_extra'
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #24800: Superset REST API Bug with latest Helm Chart Deployment
URL: https://github.com/apache/superset/issues/24800
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "JaoMarcos (via GitHub)" <gi...@apache.org>.
JaoMarcos commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-1910366450
Same problem here
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-2931840194
<!-- Answer -->
The KeyError for 'encrypted_extra' when calling /api/v1/database/_info is due to a mismatch between the fields defined in the API schema and those expected by the endpoint. Specifically, 'encrypted_extra' is included in the add/edit columns for the Database API but not in the show/list columns, so when the info endpoint tries to build its response, it may attempt to access a field that isn't present, resulting in a KeyError. This is a known issue and has been discussed in the context of import/export and schema validation problems with 'encrypted_extra' parameters via the REST API. A related issue and fix can be found in [issue #31438](https://github.com/apache/superset/issues/31438) and [PR #32339](https://github.com/apache/superset/pull/32339), which address similar schema mismatches.
The root cause is that the API layer or model schema does not consistently include or check for 'encrypted_extra' in all contexts, leading to errors when the field is missing or not expected by the schema. Defensive coding (checking for key existence before access) is not universally applied in the codebase, which makes this kind of error possible.
If you are running into this on a supported Superset version and the latest Helm chart, it may be worth checking if your deployment includes the fixes from the referenced PR. If not, updating to a version that includes these changes should resolve the issue. If you are on a version where this persists, you may need to manually patch the schema or ensure that 'encrypted_extra' is handled consistently in your API configuration. For more details, see the discussion and fix in [issue #31438](https://github.com/apache/superset/issues/31438) and [PR #32339](https://github.com/apache/superset/pull/32339).
<!-- Dosu Comment Footer -->
*To reply, just mention my name [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/3689be5a-759d-45af-aeda-2522c0049b35?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3689be5a-759d-45af-aeda-2522c0049b35?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3689be5a-759d-45af-aeda-2522c0049b35?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3689be5a-759d-45af-aeda-2522c0049b35?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3689be5a-759d-45af-aeda-2522c0049b35?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3689be5a-759d-45af-aeda-2522c0049b35?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3689be5a-759d-45af-aeda-2522c0049b35?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [!
[Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/24800)
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "snowch (via GitHub)" <gi...@apache.org>.
snowch commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-2473002366
I have the same issue with docker compose:
- https://github.com/apache/superset/blob/master/docker-compose-image-tag.yml
- 4.0.2
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] keenborder786 commented on issue #24800: Superset REST API Bug with latest Helm Chart Deployment
Posted by "keenborder786 (via GitHub)" <gi...@apache.org>.
keenborder786 commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-1650355213
Just an update: I also tried the docker deployment and the same bug persist their as well.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-2931823479
Pinging @dosu for any helpful insight here.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Superset REST API Bug with latest Helm Chart Deployment [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-2108778954
Is anyone still facing this in supported versions of Superset (3.1/4.0) on newer Helm charts? This is at risk of being closed as stale/obsolete if not.
CC @villebro @craig-rueda like I always do for helm-related issues ;)
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] michael-s-molina commented on issue #24800: Superset REST API Bug with latest Helm Chart Deployment
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on issue #24800:
URL: https://github.com/apache/superset/issues/24800#issuecomment-1650439445
@dpgaspar Could you check this? I can reproduce the error on master.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org