xddpool opened a new issue, #24622:
URL: https://github.com/apache/superset/issues/24622

   A clear and concise description of what the bug is.
   
   #### How to reproduce the bug
   When accessing Superset remotely through the public IP, I encounter an issue 
while creating a new chart. It only allows queries within 10 seconds, and if it 
exceeds 10 seconds, it displays an "Unexpected error".
   
   I have deployed Superset on Linux using Docker, and it worked fine when 
tested locally. However, when accessing it remotely through the router's 
forwarded public IP, I encounter this issue. The sample dashboards and 
permission features of Superset work without any problems. The issue only 
occurs when creating a new chart and the query takes longer than 10 seconds, it 
throws an error (without any specific error code). But when I refresh the page, 
the query results are displayed, and the console shows everything is normal 
without any relevant error logs.
   
   Expected results
   To see the preview of query results.
   
   Actual results
   Unexpected error
   And after refreshing the page, I get the results.
   I tried the same query in SQL Lab and encountered the same results.
   
   The following are the configurations I have overridden in the 
superset_config.py file:
   
   SESSION_COOKIE_HTTPONLY = True # Prevent cookie from being read by frontend 
JS?
   SESSION_COOKIE_SECURE = False # Prevent cookie from being transmitted over 
non-tls?
   SESSION_COOKIE_SAMESITE = "Lax"
   
   TALISMAN_ENABLED = False
   
   SESSION_PROTECTION = "basic"
   
   #### Screenshots
   error
   
![1231231231](https://github.com/apache/superset/assets/88379635/7d5f28e9-df23-4580-98bc-a61e3758e8ed)
   
   click update chart
   
![1243131weq](https://github.com/apache/superset/assets/88379635/3ea4d0bb-19ca-4643-bf82-f66c0b2f13b3)
   
   ### Environment
   centOS7
   docker 
   
   - browser type and version:chorme
   - superset version: latest-dev
   
   ### Checklist
   - [ ] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version 
of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   console log
   <img width="882" alt="image" 
src="https://github.com/apache/superset/assets/88379635/05e471bc-28c7-44e3-b6a3-f73c349fe6bd";>
   
   


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