keveen-ghori-tatvasoft commented on issue #42073:
URL: https://github.com/apache/superset/issues/42073#issuecomment-4977935664

   @dosu when i try to load data into chart it is showing below error:
   ```
   This session has encountered an interruption, and some controls may not work 
as intended. If you are the developer of this app, please check that the guest 
token is being generated correctly.
   ```
   
   Issue is in retrieving data, but empty dashboard is embedding with data 
error. Why is that? I have added below code properly:
   ```
   payload = {"channel": async_channel_id}
   if user_id:
       payload["sub"] = str(user_id)
   token = jwt.encode(payload, ...)
   ```
   
   But still same issue:
   ```
   " 302 223 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 
(KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 Edg/147.0.0.0"
   
   2026-07-15 06:59:47,730:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
    
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "POST 
/api/v1/chart/data?form_data=%7B%22slice_id%22%3A1759%7D&dashboard_id=99 
HTTP/1.1" 500 334 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,608:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1748?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,630:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1751?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,646:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1753?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,749:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1754?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,785:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1755?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,803:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1747?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,843:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   2026-07-15 06:58:52,851:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1756?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,853:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1757?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1758?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,954:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1763?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:52,990:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:52 +0000] "GET 
/api/v1/chart/1762?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:53,006:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:53 +0000] "GET 
/api/v1/chart/1760?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   202.131.123.10 - - [15/Jul/2026:06:58:53 +0000] "GET 
/static/assets/6ee7d93f9cc5ccaa3009.chunk.js HTTP/1.1" 200 1205 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:53,049:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   202.131.123.10 - - [15/Jul/2026:06:58:53 +0000] "GET 
/api/v1/chart/1759?q=(columns:!(owners.first_name,owners.last_name),keys:!(none))
 HTTP/1.1" 404 24 
"https://superse.com/embedded/6cc71710-54cd-4628-83f1-cd406fdf4d70"; 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/146.0.0.0 Safari/537.36"
   2026-07-15 06:58:53,063:WARNING:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped
   ```
   
   Analyze attached embedded dashboard result image for reference.
   
   <img width="1505" height="627" alt="Image" 
src="https://github.com/user-attachments/assets/da38e996-b6e0-45e3-bc75-62ab7b15847a";
 />


-- 
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