GitHub user huutai1996 edited a discussion: Superset worker call api 
warm_up_cache returned 403


[supersetconfig.log](https://github.com/user-attachments/files/19613627/supersetconfig.log)
Hi all, 
I am using superset 4.1.2
I am having problem with api warm up cache, I see log return 403. I checked and 
found an addtional log line even though I configured disable it with option 
WTF_CSRF_ENABLED= False
`Fetching https://bi.aloso.lab/api/v1/security/csrf_token/`
Below is my superset worker log with configuration in attachment file

```
[2025-04-05 04:15:01,337: INFO/ForkPoolWorker-4] 
fetch_url[f9adcf66-5d7b-4d4a-9a12-ae61f494ea88]: URL 
'https://bi.aloso.lab/api/v1/chart/warm_up_cache' is secure. Adding Referer 
header.
[2025-04-05 04:15:01,337: INFO/ForkPoolWorker-1] 
fetch_url[92c2a10e-e858-46f9-9569-6f1923f829ff]: URL 
'https://bi.aloso.lab/api/v1/chart/warm_up_cache' is secure. Adding Referer 
header.
[2025-04-05 04:15:01,337: INFO/ForkPoolWorker-1] 
fetch_url[92c2a10e-e858-46f9-9569-6f1923f829ff]: Fetching 
https://bi.aloso.lab/api/v1/security/csrf_token/
[2025-04-05 04:15:01,337: INFO/ForkPoolWorker-4] 
fetch_url[f9adcf66-5d7b-4d4a-9a12-ae61f494ea88]: Fetching 
https://bi.aloso.lab/api/v1/security/csrf_token/
[2025-04-05 04:15:01,349: INFO/ForkPoolWorker-2] 
fetch_url[b98b19b5-167a-45cc-b628-d549f9324c9e]: Fetching 
https://bi.aloso.lab/api/v1/chart/warm_up_cache with payload {"chart_id": 1039, 
"dashboard_id": 170}
[2025-04-05 04:15:01,362: INFO/ForkPoolWorker-3] 
fetch_url[cbc8556c-e838-4a1b-ae7f-3902ec44d3ae]: Fetching 
https://bi.aloso.lab/api/v1/chart/warm_up_cache with payload {"chart_id": 1017, 
"dashboard_id": 170}
[2025-04-05 04:15:01,410: ERROR/ForkPoolWorker-2] 
fetch_url[b98b19b5-167a-45cc-b628-d549f9324c9e]: Error warming up cache!
Traceback (most recent call last):
File "/app/superset/tasks/cache.py", line 236, in fetch_url
     response = request.urlopen(  # pylint: disable=consider-using-with
   File "/usr/local/lib/python3.10/urllib/request.py", line 216, in urlopen
     return opener.open(url, data, timeout)
   File "/usr/local/lib/python3.10/urllib/request.py", line 525, in open
     response = meth(req, response)
   File "/usr/local/lib/python3.10/urllib/request.py", line 634, in 
http_response
     response = self.parent.error(
   File "/usr/local/lib/python3.10/urllib/request.py", line 563, in error
     return self._call_chain(*args)
   File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
     result = func(*args)
   File "/usr/local/lib/python3.10/urllib/request.py", line 643, in 
http_error_default
     raise HTTPError(req.full_url, code, msg, hdrs, fp)
 urllib.error.HTTPError: HTTP Error 403: FORBIDDEN`
```



GitHub link: https://github.com/apache/superset/discussions/33004

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to