11. Distributed Tracing Bug : API-Gateway does not work after install WSL to setup the Docker Desktop

Each microservices works fine independently but once the microservices bia API-Gateway then it raises the bellow error in the API-Gateway console and response INTERNAL SERVER ERROR to the client.

Error
 2024-11-24T20:11:43.620+06:00 ERROR 7724 --- [API-GATEWAY] [ctor-http-nio-3] [ ] a.w.r.e.AbstractErrorWebExceptionHandler : [5e75c0c1-2] 500 Server Error for HTTP GET "/employee-service/emp_service/getAllEmp" java.net.UnknownHostException: Failed to resolve 'AMT-LP-SAIDUL.mshome.net' [A(1)]

Reason for Error
  • WSL and Docker-related configurations may indirectly affect hostname resolution due to network interface changes or DNS behavior.
  • No DNS Suffix: Your system does not append any domain suffix (e.g., .mshome.net), which could cause issues with hostname resolution.


Solution

Step 1 : Add this 172.23.16.1 AMT-LP-SAIDUL.mshome.net in the below file.
Location : C:\Windows\System32\drivers\etc\hosts



Step 2 : Restart the API-Gateway

Step 3 : Now check by calling API from client (Postman)

Post a Comment

0 Comments