dosubot[bot] commented on issue #31364:
URL: https://github.com/apache/superset/issues/31364#issuecomment-2530432361

   <!-- Answer -->
   The 404 error you're encountering when accessing the URL 
`http://localhost:9000/api/v1/dashboard/33/filters` suggests that the endpoint 
might not be correctly configured or accessible. Here are a few things to check:
   
   1. **Endpoint Definition**: Ensure that the endpoint is correctly defined in 
the backend. The expected endpoint for updating filter configurations in a 
Superset dashboard is `PUT /api/v1/dashboard/{id}/filters`, and it should be 
defined in the backend code as part of the `DashboardRestApi` class 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/dashboards/api.py)</sup>.
   
   2. **Routing Configuration**: Verify that the routing in the Superset 
backend correctly maps to the `put_filters` method in the `DashboardRestApi` 
class. This involves checking the Flask app configuration to ensure that the 
route is registered and exposed correctly.
   
   3. **Frontend URL Construction**: Check the frontend code to ensure that the 
URL for the API call is constructed correctly. The frontend should be making a 
PUT request to the correct endpoint, consistent with the backend definition.
   
   4. **Base URL and Port Configuration**: Confirm that the base URL and port 
are correctly configured in your Superset setup. The `baseUrl` parameter in the 
`SupersetClientClass` should match the server's actual address and port 
<sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-core/src/connection/SupersetClientClass.ts)</sup>.
   
   5. **Middleware or Proxy Configurations**: Ensure there are no middleware or 
proxy configurations that might alter or block requests to the 
`/api/v1/dashboard/{id}/filters` endpoint.
   
   By checking these areas, you should be able to identify and resolve the 
issue causing the 404 error.
   
   
   <!-- 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/b690bb8f-9050-44d2-9de9-a0a6f5d63a7f?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/b690bb8f-9050-44d2-9de9-a0a6f5d63a7f?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/b690bb8f-9050-44d2-9de9-a0a6f5d63a7f?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/b690bb8f-9050-44d2-9de9-a0a6f5d63a7f?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/b690bb8f-9050-44d2-9de9-a0a6f5d63a7f?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/b690bb8f-9050-44d2-9de9-a0a6f5d63a7f?feedback_type=other)</sup>
   


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