s-manzhak opened a new issue, #36097:
URL: https://github.com/apache/superset/issues/36097

   ### Bug description
   
   # React Error #185 in Embedded Dashboard (iframe)
   
   ## Environment
   
   **Superset:**
   - Version: `0.0.0.dev0` (development build)
   - Python: `3.11.13`
   - Flask: `2.3.3`
   - Flask-AppBuilder: `5.0.0`
   
   **Deployment:**
   - Docker containers
   - PostgreSQL 16
   - Redis 7
   
   **Configuration:**
   ```python
   FEATURE_FLAGS = {
       "EMBEDDED_SUPERSET": True,
   }
   EMBEDDED_SUPERSET = True
   ```
   
   ---
   
   ## Problem
   
   Embedded dashboard in iframe throws **React error #185**:
   
   ```
   Error: Minified React error #185; visit 
https://reactjs.org/docs/error-decoder.html?invariant=185
   ```
   
   **Decoded error message:**
   > "Could not find 'store' in the context of 'Connect(Component)'. Either 
wrap the root component in a Provider, or pass a custom React context provider."
   
   ---
   
   ## Symptoms
   
   ✅ **Works:**
   - Dashboard loads correctly when accessed directly in Superset UI
   - All API requests return 200 OK status
   - Backend logs show no errors
   
   ❌ **Fails:**
   - Charts do not render in embedded mode (iframe)
   - React error #185 in browser console
   - Frontend fails to initialize Redux store
   
   ---
   
   ## Steps to Reproduce
   
   1. Create dashboard with charts
   2. Enable embedded dashboard:
      ```python
      POST /api/v1/dashboard/{id}/embedded
      ```
   
   3. Generate guest token:
      ```python
      POST /api/v1/security/guest_token/
      {
        "user": {"username": "guest"},
        "resources": [{"type": "dashboard", "id": "dashboard-uuid"}],
        "rls": [{"clause": "source_manager_id = 'some-uuid'"}]
      }
      ```
   
   4. Embed in iframe:
      ```html
      <iframe 
src="https://superset.example.com/embedded/{uuid}?uiConfig=11";></iframe>
      ```
   
   5. **Result:** React error #185, charts don't render
   
   ---
   
   ## Network Requests (all return 200 OK)
   
   ```
   GET /api/v1/me/roles/            → 200 OK
   GET /api/v1/dashboard/2          → 200 OK
   GET /api/v1/dashboard/2/charts   → 200 OK
   GET /api/v1/dashboard/2/datasets → 200 OK
   POST /api/v1/chart/data          → 200 OK (with data)
   ```
   
   Backend processes all requests successfully, but frontend fails to render.
   
   ---
   
   ## Additional Context
   
   **Custom Security Manager:**
   
   We use `CustomSecurityManager` to inject dynamic filters into guest tokens:
   
   ```python
   from superset.security.manager import SupersetSecurityManager
   
   class CustomSecurityManager(SupersetSecurityManager):
       def create_guest_access_token(self, user, resources, rls):
           # Custom logic to add RLS rules based on request parameters
           return super().create_guest_access_token(user, resources, rls)
   ```
   
   **Configuration:**
   ```python
   # superset_config.py
   CUSTOM_SECURITY_MANAGER = CustomSecurityManager
   ```
   
   ---
   
   ## Expected vs Actual
   
   | Scenario | Expected | Actual |
   |----------|----------|--------|
   | Direct dashboard access | ✅ Works | ✅ Works |
   | Embedded without RLS | ✅ Should work | ✅ Works |
   | Embedded with RLS | ✅ Should work | ❌ React error #185 |
   
   ---
   
   ## Questions
   
   1. Is `CustomSecurityManager` supported for embedded dashboards?
   2. Does the embedded frontend require special initialization for custom 
security managers?
   3. Is there a recommended way to inject dynamic RLS rules for guest tokens?
   
   ---
   
   ## Browser Console Output
   
   ```javascript
   Error: Minified React error #185; visit 
https://reactjs.org/docs/error-decoder.html?invariant=185 
       at fs (vendors.fa1c7a4ef3d8e16a4b94.entry.js:2:412718)
       at ja (vendors.fa1c7a4ef3d8e16a4b94.entry.js:2:384764)
       at Object.e [as onStateChange] 
(vendors.fa1c7a4ef3d8e16a4b94.entry.js:2:651073)
       at Object.o [as callback] 
(vendors.fa1c7a4ef3d8e16a4b94.entry.js:2:641998)
   ```
   
   ---
   
   ## Possible Root Cause
   
   The issue appears when:
   - Guest token contains custom RLS rules
   - Dashboard is embedded in iframe
   - Frontend Redux store initialization may be affected by custom security 
manager response
   
   ---
   
   Any guidance would be greatly appreciated! Thank you.
   
   ### Screenshots/recordings
   
   <img width="1836" height="794" alt="Image" 
src="https://github.com/user-attachments/assets/36535f0f-5cdb-43a1-819a-cbe670fea241";
 />
   
   <img width="1846" height="968" alt="Image" 
src="https://github.com/user-attachments/assets/0a49de5c-20d7-4f21-b4de-754f2f6a28fa";
 />
   
   ### Superset version
   
   5.0.0
   
   ### Python version
   
   3.11
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   Log from superset_app container
   
   ```
   2025-11-13 06:39:11,007:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:11,011:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:11] 
"GET 
/embedded/a0f05ff2-b103-49f4-90df-022db9689ae8?uiConfig=11&show_filters=false&expand_filters=false&sourse_manager_id=d4e82bd6-b932-11ee-96f0-eec926a2fb19
 HTTP/1.1" 200 -
   2025-11-13 06:39:11,757:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:11] 
"GET /api/v1/me/roles/ HTTP/1.1" 200 -
   2025-11-13 06:39:11,933:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:11,936:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:11] 
"GET /api/v1/dashboard/2/charts HTTP/1.1" 200 -
   2025-11-13 06:39:11,989:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:11,994:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:11] 
"GET /api/v1/dashboard/2 HTTP/1.1" 200 -
   2025-11-13 06:39:12,066:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:12,170:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:12,175:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,182:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:12] 
"GET /api/v1/dashboard/2/datasets HTTP/1.1" 200 -
   2025-11-13 06:39:12,444:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,453:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,464:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,467:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,471:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,475:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:12] 
"POST /api/v1/chart/data?form_data={"slice_id":7}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:12,548:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,555:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,567:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,623:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,641:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,645:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:12] 
"POST /api/v1/chart/data?form_data={"slice_id":8}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:12,726:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,743:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,753:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,757:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,761:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,765:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:12] 
"POST /api/v1/chart/data?form_data={"slice_id":3}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:12,782:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:12,838:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,845:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,853:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,863:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,872:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,876:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:12,880:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:12] 
"POST /api/v1/chart/data?form_data={"slice_id":6}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:13,338:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,348:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,362:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,364:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,369:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,373:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:13] 
"POST /api/v1/chart/data?form_data={"slice_id":5}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:13,416:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:13,417:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:13,423:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:13,424:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:13,436:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:13,437:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:13,458:INFO:sqlglot:Applying array index offset (1)
   2025-11-13 06:39:13,459:INFO:sqlglot:Applying array index offset (1)
   2025-11-13 06:39:13,473:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,486:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,497:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,499:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,503:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,507:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:13] 
"POST /api/v1/chart/data?form_data={"slice_id":9}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:13,525:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:13,877:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,891:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,908:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,928:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,935:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,947:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:13,962:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:13] 
"POST /api/v1/chart/data?form_data={"slice_id":4}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:14,034:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,090:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,148:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,150:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,154:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,157:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:14] 
"POST /api/v1/chart/data?form_data={"slice_id":7}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:14,579:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,635:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,651:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,654:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,658:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,664:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:14] 
"POST /api/v1/chart/data?form_data={"slice_id":5}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:14,737:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,748:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,766:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,769:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,773:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,776:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:14] 
"POST /api/v1/chart/data?form_data={"slice_id":8}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:14,804:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,811:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,815:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,818:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:14] 
"POST /api/v1/chart/data?form_data={"slice_id":7}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:14,835:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:14,898:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,905:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,918:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,930:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,933:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,936:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:14,942:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:14] 
"POST /api/v1/chart/data?form_data={"slice_id":4}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:14,974:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:14,975:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:14,981:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:14,982:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:14,994:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:14,995:INFO:sqlglot:Applying array index offset (-1)
   2025-11-13 06:39:15,018:INFO:sqlglot:Applying array index offset (1)
   2025-11-13 06:39:15,018:INFO:sqlglot:Applying array index offset (1)
   2025-11-13 06:39:15,034:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,060:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,077:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,087:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,093:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,097:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":9}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,116:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:15,171:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,179:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,188:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,197:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,212:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,222:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,226:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":6}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,255:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,263:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,268:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,273:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":5}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,302:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,339:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,349:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,353:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":9}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,429:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,436:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,457:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,464:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,475:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,480:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":3}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,511:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,516:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,521:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,524:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":3}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,543:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:15,556:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,560:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,564:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,570:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":6}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,590:WARNING:superset.common.query_object:The field 
`groupby` is deprecated, please use `columns` instead.
   2025-11-13 06:39:15,602:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,605:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,609:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,613:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":4}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:15,614:INFO:werkzeug:127.0.0.1 - - [13/Nov/2025 06:39:15] 
"GET /health HTTP/1.1" 200 -
   2025-11-13 06:39:15,647:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,652:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,659:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:15,674:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:15] 
"POST /api/v1/chart/data?form_data={"slice_id":8}&dashboard_id=2 HTTP/1.1" 200 -
   2025-11-13 06:39:16,734:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2025-11-13 06:39:16,741:INFO:werkzeug:172.18.0.11 - - [13/Nov/2025 06:39:16] 
"POST /superset/log/?explode=events HTTP/1.1" 200 -
   ```
   
   ### 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]

Reply via email to