dosubot[bot] commented on issue #36069: URL: https://github.com/apache/superset/issues/36069#issuecomment-3520409884
<!-- Answer --> Your browser URL (<http://localhost:5000/superset/welcome/>) is the normal Superset home page and is not related to the WebSocket 404 error. The WebSocket connection should use the URL you set in your config (`ws://localhost:8080/`). If you still see errors about `ws://localhost:5000/ws`, it means the frontend is not picking up your updated WebSocket config. To troubleshoot: 1. Open your browser's developer tools (Network tab, filter by "WS") and check the exact WebSocket URL the frontend is trying to connect to and the error/status code. 2. Make sure the superset-websocket server is running and listening on port 8080 (try visiting http://localhost:8080/health or check the terminal where you ran `npm run dev-server`). 3. Double-check that the JWT secret and cookie name are exactly the same in both your Superset config and superset-websocket config.json (no extra spaces or typos). 4. Clear your browser cache or do a hard refresh to make sure the frontend is using the latest config. 5. If the frontend is still trying to connect to `ws://localhost:5000/ws`, it may be using an old or default config. Make sure you restarted the Flask server after changing `superset_config.py`. Also, your Python (3.9) and Node (16) versions are not supported with the latest Superset code. Superset now requires Python 3.10/3.11 and Node.js 20.x. Using unsupported versions can cause asset and config issues that lead to errors like this. Upgrading to supported versions and using a stable Superset release is strongly recommended for reliable async features and WebSocket support [(reference)](https://github.com/apache/superset/issues/35823). Let me know what you see in the Network tab and if the WebSocket server is running on port 8080. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/f24eb820-eae2-447b-ac0f-9b6869de7921?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/f24eb820-eae2-447b-ac0f-9b6869de7921?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/f24eb820-eae2-447b-ac0f-9b6869de7921?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/f24eb820-eae2-447b-ac0f-9b6869de7921?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f24eb820-eae2-447b-ac0f-9b6869de7921?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/f24eb820-eae2-447b-ac0f-9b6869de7921?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f24eb820-eae2-447b-ac0f-9b6869de7921?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36069) -- 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]
