on ‎2025 Apr 01 10:50 AM
Hi,
Mock server is used here as part of the automation test for the application. The application is deployed in BTP pods. The application and the mock server runs on the same pod. When accessing the mock server from the application via localhost it throws the below error. Can someone explain how to access the server from the application in BTP ?
org.springframework.web.client.ResourceAccessException: I/O error on POST request for \"http://localhost:8086/v2/configurations\": Connection refused
Caused by: java.net.ConnectException: Connection refused","\tat java.base/sun.nio.ch.Net.connect0(Native Method)","\tat java.base/sun.nio.ch.Net.connect(Unknown Source)"
Request clarification before answering.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.