Service Connection Refused at Wrong Host
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 39
Description
Hello, i am running my services and Consul as localy. like that:
basically appsetting.json file of any service:
```
"ServiceSettings": {
"ServiceName": "My-Service-Name",
"ServiceHost": "127.0.0.1",
"ServicePort": 8001,
"ServiceDiscoveryAddress": "http://127.0.0.1:8500"
}
```
Registering, connecting successful to my gateway adress (127.0.0.1:8000) and consul (127.0.0.1:8500). After that when i make a request i get **"ConnectionToDownstreamServiceError Message: Error connecting to downstream service, exception: System.Net.Http.HttpRequestException: Connection refused ({device-name}:8001)".**
why the hostname returns as **{device-name}:8001**? I think problem is causes by.
env:
- OS: Ubuntu 22.04
- Ocelot.Provider.Consul version 18.0.0
Contributor guide
Research direction
Start by reproducing the local Consul setup using the ServiceSettings values in the report and the Ocelot.Provider.Consul 18.0.0 configuration. Trace how the registered downstream address becomes {device-name}:8001; done means identifying the source of that hostname and documenting or correcting the address used for the connection.
Written by the indexing model from the issue text.
Assessment
- Domain
- distributed-systems, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100