Spring Boot Microservices - Docker throwing Resource Exception

I devised an example of Spring Boot Microservices. I tried to run all services on Docker but I have some problem in some services regarding ResourceException for config server. I hope you can help me. Here is the link : https://stackoverflow.com/questions/74835400/docker-connection-issue-in-spring-boot-microservice-org-springframework-web-cl
Stack Overflow
Docker Connection Issue in Spring Boot Microservice - org.springfra...
I revised an example of Spring Boot Microservices and I have a problem about running all services on docker. After creating the image file of each services, I devised a docker-compose.yml to run all
17 Replies
JavaBot
JavaBot•3y ago
Hey, @direct_x_34! Please remember to /close this post once your question has been answered!
dan1st
dan1st•3y ago
Any specific reason you think there's a hostname entry named configserver?
direct_x_34
direct_x_34OP•3y ago
Where. I still couldn't fix the issue. I get an error regarding Connection refused to configserver @dan1st | Daniel I revised the docker-compose.yml file.
direct_x_34
direct_x_34OP•3y ago
Stack Overflow
Docker Connection Issue in Spring Boot Microservice - Configserver ...
I revised an example of Spring Boot Microservices and I have a problem about running all services on docker. After creating the image file of each services, I devised a docker-compose.yml to run all
dan1st
dan1st•3y ago
someone seems to have answered your question
direct_x_34
direct_x_34OP•3y ago
It's not an answer.
dan1st
dan1st•3y ago
to me, it seems like an answer might be incorrect but an answer nevertheless
direct_x_34
direct_x_34OP•3y ago
It can be incorrect as his code is similar to mine.
direct_x_34
direct_x_34OP•3y ago
@dan1st | Daniel Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://configserver:9296/API-GATEWAY/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused) How can I fix it? Here is the link : https://stackoverflow.com/questions/74841750/spring-boot-microservice-docker-issue-api-gateway-cannot-connect-to-configs
Stack Overflow
Spring Boot Microservice -> Docker Issue : API Gateway cannot conne...
I have a problem about running all services on docker. The only thing which I cannot handle is related with connection problem between api gateway and configserver. Config server is based on git file
dan1st
dan1st•3y ago
Why did you create a new question?
direct_x_34
direct_x_34OP•3y ago
Cause I cannot connect api gateway to config server. Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://configserver:9296/API-GATEWAY/default": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
dan1st
dan1st•3y ago
isn't it still the same issue?
direct_x_34
direct_x_34OP•3y ago
It's the same content but What I want to do is to access anyone easily and answer it quickly. Do you know how to fix it?
dan1st
dan1st•3y ago
no but posting the same question multiple times on StackOverflow is probably a bad idea it might get you question-banned, amongst other things
direct_x_34
direct_x_34OP•3y ago
Why did I get ResourceAccessException in api gateway. How can I fix the issue?
dan1st
dan1st•3y ago
I don't know
JavaBot
JavaBot•3y ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
Want results from more Discord servers?
Add your server