Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After compose up: Host is unreachable "http://credit-agency:9002/person-rating/feed" #18

Open
clojj opened this issue Feb 12, 2021 · 0 comments

Comments

@clojj
Copy link

clojj commented Feb 12, 2021

After fixing this issue locallly (by renaming the artifact in the Dockerfile)
#16

... I get this error after running
docker-compose up --build

ddd-with-spring-scoring | 2021-02-12 20:23:27.310  WARN 1 --- [ask-scheduler-1] .c.j.MappingJackson2HttpMessageConverter : Failed to evaluate Jackson deserialization for type [[simple type, class com.rometools.rome.feed.atom.Feed]]: com.fasterxml.jackson.databind.JsonMappingException: Conflicting setter definitions for property "content": org.jdom2.Element#setContent(1 params) vs org.jdom2.Element#setContent(1 params)
ddd-with-spring-scoring | 2021-02-12 20:23:28.347 ERROR 1 --- [ask-scheduler-1] o.s.integration.handler.LoggingHandler   : org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://credit-agency:9002/person-rating/feed": Host is unreachable (Host unreachable); nested exception is java.net.NoRouteToHostException: Host is unreachable (Host unreachable)
ddd-with-spring-scoring |       at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:743)
ddd-with-spring-scoring |       at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:686)
ddd-with-spring-scoring |       at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:602)
ddd-with-spring-scoring |       at com.mploed.dddwithspring.scoring.feeds.CreditAgencyPoller.poll(CreditAgencyPoller.java:53)
ddd-with-spring-scoring |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

..should "http://credit-agency:9002" be available in the docker network ?

@clojj clojj changed the title Host is unreachable After compose up: HOst is unreachable "http://credit-agency:9002/person-rating/feed" Feb 12, 2021
@clojj clojj changed the title After compose up: HOst is unreachable "http://credit-agency:9002/person-rating/feed" After compose up: Host is unreachable "http://credit-agency:9002/person-rating/feed" Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant