GitHub user dosubot[bot] added a comment to the discussion: Superset 3.0.0 > 
Chart in dashboard > Unexpected error (Network error)

<!-- Greeting -->
Hey there, @maybesheloves! I'm here to help you figure out the issue with 
Superset 3.0.0. Let's work together to solve this problem.

<!-- Answer -->
I found a similar unsolved discussion regarding a 'comparator' issue that might 
be related to network errors in Apache Superset. You can view the discussion 
[here](https://github.com/apache/superset/discussions/12356) 
<sup>[[1]](https://github.com/apache/superset/discussions/12356)</sup>.

For your specific issue with the network error when adding a chart to a 
dashboard in Superset 3.0.0, consider checking the following:

1. **Network Request Endpoints**: Superset uses specific endpoints for fetching 
chart data. Ensure that the `/api/v1/chart/data` endpoint is accessible and not 
blocked by any network policies 
<sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/components/Chart/chartAction.js)</sup>.

2. **Error Messages and Codes**: Superset documents specific error messages and 
codes related to network errors. Check if the error message corresponds to any 
documented issues, such as `FRONTEND_NETWORK_ERROR` or 
`CONNECTION_HOST_DOWN_ERROR` 
<sup>[[3]](https://github.com/apache/superset/blob/master/superset/errors.py)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/superset-frontend/src/setup/setupErrorMessages.ts)</sup>.

3. **Retry Mechanism**: Superset's frontend has a retry mechanism for network 
errors, specifically for HTTP status code 503. Ensure that the error you're 
encountering isn't due to a temporary issue that could be resolved by this 
retry mechanism 
<sup>[[5]](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/src/connection/constants.ts)</sup>.

4. **Configuration Settings**: Review your Superset configuration settings, 
such as `SUPERSET_WEBSERVER_TIMEOUT` and `DASHBOARD_AUTO_REFRESH_MODE`, which 
could affect network requests for dashboards 
<sup>[[6]](https://github.com/apache/superset/blob/a49a15f990176c8736ad67d06f74e6eb30b612e4/superset/config.py)</sup><sup>[[7]](https://github.com/apache/superset/blob/89b6d7fb681ed69644c5c5e1a0201209d82518f7/superset/config.py)</sup>.

These steps might help you identify and resolve the network error when adding 
charts to your dashboard.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/aa943f61-55c2-441b-b739-190c9ee4c289?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/aa943f61-55c2-441b-b739-190c9ee4c289?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/aa943f61-55c2-441b-b739-190c9ee4c289?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/aa943f61-55c2-441b-b739-190c9ee4c289?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/aa943f61-55c2-441b-b739-190c9ee4c289?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/aa943f61-55c2-441b-b739-190c9ee4c289?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/aa943f61-55c2-441b-b739-190c9ee4c289?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/superset/discussions/32752#discussioncomment-12551341

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