cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Couldn't connect to mockserver from app in the same pod via local host ?

Mohamed-Yaseen-k
Associate
Associate
0 Likes
154

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

Accepted Solutions (0)

Answers (0)