dosubot[bot] commented on issue #7751: URL: https://github.com/apache/incubator-devlake/issues/7751#issuecomment-2230810405
<!-- Greeting --> Hello @harivignesh-git! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's work together to solve this issue! <!-- Answer --> To resolve the `AxiosError: Request failed with status code 502` when trying to access the Config UI at `http://localhost:4000`, ensure that the backend service at `DEVLAKE_ENDPOINT` is up and running. The 502 status code indicates a "Bad Gateway" error, meaning the server received an invalid response from an inbound server. Here are the steps to troubleshoot: 1. Verify that the service at `DEVLAKE_ENDPOINT` is running and accessible. 2. Check the network connectivity between the Config UI and the backend service. 3. Ensure there are no misconfigurations in the `DEVLAKE_ENDPOINT` URL. In the code, the `baseURL` for Axios requests is set to `DEVLAKE_ENDPOINT`: ```ts import { DEVLAKE_ENDPOINT } from '@/config'; const instance = axios.create({ baseURL: DEVLAKE_ENDPOINT, }); ``` Make sure the backend service is operational and listening on the correct port <sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/config-ui/src/utils/request.ts)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- 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: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org